Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:Is GF Divisor"
(new) |
(show divs only if exists) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
:*first value: {{Vk}}-value | :*first value: {{Vk}}-value | ||
:*second value: {{Vn}}-value | :*second value: {{Vn}}-value | ||
− | Forming a link to the GF Divisor {{Kbn|+|<k-value>|<n-value>}}. | + | Forming a link to the GF Divisor {{Kbn|+|<k-value>|<n-value>}} and the entry found. |
==Examples== | ==Examples== | ||
*<code><nowiki>{{Is GF Divisor|3|209}}</nowiki></code>: {{Is GF Divisor|3|209}} | *<code><nowiki>{{Is GF Divisor|3|209}}</nowiki></code>: {{Is GF Divisor|3|209}} | ||
− | [[Category:Templates]]</noinclude><includeonly>Is [[GF Divisor {{{1}}} {{{2}}}|GF Divisor]]</includeonly> | + | [[Category:Templates]]</noinclude><includeonly>Is [[GF Divisor {{{1}}} {{{2}}}|GF Divisor]] {{#ifexist:GF Divisor {{{1}}} {{{2}}}|of {{#arraydefine:list|{{GP|GF Divisor {{{1}}} {{{2}}}|GFList}}|/\n/}}{{#vardefine:a|{{#explode:{{#arrayindex:list|0}}|,|0}}}}{{#vardefine:b|{{#explode:{{#arrayindex:list|0}}|,|1}}}}{{#vardefine:m|{{#explode:{{#explode:{{#arrayindex:list|0}}|,|2}}|#|0}}}}{{#ifeq:{{#var:a}}|2|{{DGF|{{#var:m}}}}|{{#ifeq:{{#var:b}}|1|{{DGF|{{#var:m}}|{{#var:a}}}}|{{DGF|{{#var:m}}|{{#var:a}}|{{#var:b}}}}}}}} {{#ifexpr:{{#arraysize:list}}>1|[+{{#expr:{{#arraysize:list}}-1}}]}}}}</includeonly> |
Latest revision as of 08:57, 30 July 2021
Purpose
Shows a link to the page of the General Fermat divisor.
Usage
{{Is GF Divisor|<k-value>|<n-value>}}
- first value: k-value
- second value: n-value
Forming a link to the GF Divisor <k-value>•2<n-value>+1 and the entry found.
Examples
{{Is GF Divisor|3|209}}
: Is GF Divisor of F(207) [+19]