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:GFDivisor get m"
m |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
==Examples== | ==Examples== | ||
− | *<nowiki>{{GFDivisor get m|GF Divisor 3 209|2,1,}}</nowiki> gives {{GFDivisor get m|GF Divisor 3 209|2,1,}}, means {{NPr|3|209}} is divisor of {{NGF | + | *<nowiki>{{GFDivisor get m|GF Divisor 3 209|2,1,}}</nowiki> gives {{GFDivisor get m|GF Divisor 3 209|2,1,}}, means {{NPr|3|209}} is divisor of {{NGF|207}}. |
− | |||
− | |||
− | |||
− | [[Category:Templates]]</noinclude><includeonly>{{#arraydefine:list|{{GP|{{{1}}}|GFList}}|/\n/}}{{#vardefine:val|0}}{{#vardefine:i|0}}{{#while: | + | [[Category:Templates]]</noinclude><includeonly>{{#arraydefine:list|{{GP|{{{1}}}|GFList}}|/\n/}}{{#ifexpr:{{#arraysize:list}}>0|{{#vardefine:val|0}}{{#vardefine:i|0}}{{#while: |
| {{#ifexpr:{{#var:i}}<{{#arraysize:list}}|{{#ifexpr:{{#var:val}}=0|true}}}} | | {{#ifexpr:{{#var:i}}<{{#arraysize:list}}|{{#ifexpr:{{#var:val}}=0|true}}}} | ||
| <nowiki /> | | <nowiki /> | ||
{{#vardefine:nr|{{#explode:{{#arrayindex:list|{{#var:i}}}}|#|0}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#if:{{#pos:{{#var:nr}}|{{{2}}}}}|{{#vardefine:val|{{#replace:{{#var:nr}}|{{{2}}}|}}}}}} | {{#vardefine:nr|{{#explode:{{#arrayindex:list|{{#var:i}}}}|#|0}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#if:{{#pos:{{#var:nr}}|{{{2}}}}}|{{#vardefine:val|{{#replace:{{#var:nr}}|{{{2}}}|}}}}}} | ||
− | }}{{#var:val}}</includeonly> | + | }}{{#vardefine:a|{{#explode:{{{2}}}|,|0}}}}{{#vardefine:b|{{#explode:{{{2}}}|,|1}}}}[[Generalized Fermat number {{#var:a}} {{#var:b}} {{#var:val}}|{{#var:val}}]]}}</includeonly> |
Latest revision as of 09:54, 7 July 2021
Purpose
Returns the exponent of the xGFn of a given GF Divisor.
Usage
- Parameter 1: page name of GF Divisor
- Parameter 2: a,b-values comma delimited (as given in GF Divisor like "3,1,")
Examples
- {{GFDivisor get m|GF Divisor 3 209|2,1,}} gives 207, means Proth 3•2209+1 is divisor of Fermat 22207+1.