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
(new)
 
(show first entry)
Line 7: Line 7:
 
:*first value: {{Vk}}-value
 
:*first value: {{Vk}}-value
 
:*second value: {{Vn}}-value
 
:*second value: {{Vn}}-value
Forming a link to the GF Divisor {{Kbn|+|<k-value>|<n-value>}}.
+
Forming a link to the GF Divisor {{Kbn|+|<k-value>|<n-value>}} and the entry found.
  
 
==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]]</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|, ...}}</includeonly>

Revision as of 08:50, 30 November 2020

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