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"

From Prime-Wiki
Jump to: navigation, search
m
(show divs only if exists)
 
Line 11: Line 11:
 
==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]] 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>
+
[[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