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
(test)
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|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|GF Divisor 3 209|5,2,}}</nowiki> gives {{GFDivisor get m|GF Divisor 3 209|5,2,}}, means {{NPr|3|209}} is divisor of {{NGF|5|2|208}}.
 
*<nowiki>{{GFDivisor get m|GF Divisor 3 209|5,2,}}</nowiki> gives {{GFDivisor get m|GF Divisor 3 209|5,2,}}, means {{NPr|3|209}} is divisor of {{NGF|5|2|208}}.
Line 17: Line 17:
 
  | <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}}]]</includeonly>

Revision as of 08:45, 21 June 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