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
(show first entry)
m
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}}|,|-3}}}}{{#vardefine:b|{{#explode:{{#arrayindex:list|0}}|,|-2}}}}{{#vardefine:m|{{#explode:{{#arrayindex:list|0}}|,|-1}}}}{{#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|, ...}}</includeonly>
+
[[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}}|,|-3}}}}{{#vardefine:b|{{#explode:{{#arrayindex:list|0}}|,|-2}}}}{{#vardefine:m|{{#explode:{{#arrayindex:list|0}}|,|-1}}}}{{#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>

Revision as of 11:26, 17 June 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