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:DGF"

From Prime-Wiki
Jump to: navigation, search
(order of parameters)
(link&real examp.&2nd param=2)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
  
 
==Examples==
 
==Examples==
*<code><nowiki>{{DGF|123}}</nowiki></code>: {{DGF|123}}
+
*<code><nowiki>{{DGF|55}}</nowiki></code>: {{DGF|55}}
*<code><nowiki>{{DGF|123|3}}</nowiki></code>: {{DGF|123|3}}
+
*<code><nowiki>{{DGF|15|2}}</nowiki></code>: {{DGF|15|2}}
*<code><nowiki>{{DGF|123|5|3}}</nowiki></code>: {{DGF|123|5|3}}
+
*<code><nowiki>{{DGF|15|3}}</nowiki></code>: {{DGF|15|3}}
 +
*<code><nowiki>{{DGF|14|7|6}}</nowiki></code>: {{DGF|14|7|6}}
  
 
[[Category:Templates]]</noinclude><includeonly>{{#vardefine:args|0}}{{#if:{{{3|}}}|{{#vardefine:args|3}}|{{#if:{{{2|}}}|{{#vardefine:args|2}}|{{#vardefine:args|1}}}}}}{{#switch:{{#var:args}}
 
[[Category:Templates]]</noinclude><includeonly>{{#vardefine:args|0}}{{#if:{{{3|}}}|{{#vardefine:args|3}}|{{#if:{{{2|}}}|{{#vardefine:args|2}}|{{#vardefine:args|1}}}}}}{{#switch:{{#var:args}}
 
|1=[[Generalized Fermat number 2 1 {{{1}}}|F({{{1}}})]]
 
|1=[[Generalized Fermat number 2 1 {{{1}}}|F({{{1}}})]]
|2=[[Generalized Fermat number {{{2}}} 1 {{{1}}}|GF({{{2}}},{{{1}}})]]
+
|2={{#ifeq:{{{2}}}|2|[[Generalized Fermat number 2 1 {{{1}}}|F({{{1}}})]]|[[Generalized Fermat number {{{2}}} 1 {{{1}}}|GF({{{1}}},{{{2}}})]]}}
 
|3=[[Generalized Fermat number {{{2}}} {{{3}}} {{{1}}}|xGF({{{1}}},{{{2}}},{{{3}}})]]}}</includeonly>
 
|3=[[Generalized Fermat number {{{2}}} {{{3}}} {{{1}}}|xGF({{{1}}},{{{2}}},{{{3}}})]]}}</includeonly>

Latest revision as of 09:32, 7 June 2024

Purpose

Displays a short form of a Generalized Fermat number of the form a2n + b2n (if b=1 : a2n + 1) with link to the page.

Usage

This template uses one to three unnamed parameters which are defined as follows:

{{DGF|<value>|<value>|<value>}}

Examples