Navigation
Topics Register • News • History • How to • Template prototypes

Difference between revisions of "Template:NGF"

From Prime-Wiki
Jump to: navigation, search
(new)
 
m (Karbon moved page Template:NFt to Template:NGF without leaving a redirect: name)
(One intermediate revision by the same user not shown)
Line 16: Line 16:
  
 
[[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=[[Extended Generalized Fermat number 2 1 {{{1}}}|Fermat {{Kbn|+|2<sup>{{{1}}}</sup>}}]]
+
|1=[[Generalized Fermat number 2 1 {{{1}}}|Fermat {{Kbn|+|2<sup>{{{1}}}</sup>}}]]
|2=[[Extended Generalized Fermat number {{{1}}} 1 {{{2}}}|Gen. Fermat {{Kbn|+|1|{{{1}}}|2<sup>{{{2}}}</sup>}}]]
+
|2=[[Generalized Fermat number {{{1}}} 1 {{{2}}}|Gen. Fermat {{Kbn|+|1|{{{1}}}|2<sup>{{{2}}}</sup>}}]]
|3=[[Extended Generalized Fermat number {{{1}}} {{{2}}} {{{3}}}|xGen. Fermat {{{1}}}<sup>2<sup>{{{3}}}</sup></sup>+{{{2}}}<sup>2<sup>{{{3}}}</sup></sup>]]}}</includeonly>
+
|3=[[Generalized Fermat number {{{1}}} {{{2}}} {{{3}}}|xGen. Fermat {{{1}}}<sup>2<sup>{{{3}}}</sup></sup>+{{{2}}}<sup>2<sup>{{{3}}}</sup></sup>]]}}</includeonly>

Revision as of 10:25, 1 July 2020

Purpose

Displays 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:

{{NFt|<value>|<value>|<value>}}

Examples