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"

From Prime-Wiki
Jump to: navigation, search
(new)
 
m
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
==Usage==
 
==Usage==
*Parameter 1: k-val of GF Divisor
+
*Parameter 1: page name of GF Divisor
*Parameter 2: n-val of GF Divisor
+
*Parameter 2: a,b-values comma delimited (as given in GF Divisor like "3,1,")
*Parameter 3: a-val of (xG)F
 
*Parameter 4: b-val of (xG)F
 
  
 
==Examples==
 
==Examples==
*<nowiki>{{GFDivisor get m|3|209|3|1}}</nowiki> gives {{GFDivisor get m|3|209|3|1}}, means {{NPr|3|209}} is divisor of {{NGF|3|207}}.
+
*<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}}.
*<nowiki>{{GFDivisor get m|3|209|5|2}}</nowiki> gives {{GFDivisor get m|3|209|5|2}}, means {{NPr|3|209}} is divisor of {{NGF|5|2|208}}.
 
  
[[Category:Templates]]</noinclude><includeonly>{{#arraydefine:list|{{GP|GF Divisor {{{1}}} {{{2}}}|GFList}}|/\n/}}{{#vardefine:len|{{#expr:2+{{#len:{{{3}}}}}+{{#len:{{{4}}}}}}}}}{{#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:val}}=0|true}}
+
  | {{#ifexpr:{{#var:i}}<{{#arraysize:list}}|{{#ifexpr:{{#var:val}}=0|true}}}}
 
  | <nowiki />
 
  | <nowiki />
{{#vardefine:nr|{{#arrayindex:list|{{#var:i}}}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifeq:{{#var:i}}|10|{{#vardefine:val|}}}}{{#ifeq:{{#sub:{{#var:nr}}|0|{{#var:len}}}}|{{{3}}},{{{4}}},|{{#vardefine:val|{{#replace:{{#var:nr}}|{{{3}}},{{{4}}},|}}}}}}
+
{{#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