**Navigation**

Topics | Register • News • History • How to • Sequences statistics • Template prototypes |

# Template:NGF

## Purpose

Displays a Generalized Fermat number of the form a^{2n} + b^{2n} (if b=1 : a^{2n} + 1) with link to the page.

## Usage

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

`{{NGF|<value>|<value>|<value>}}`

- one parameter: the
*n*-value is given and displays as Fermat number 2^{2n}+1 - two parameters: the
*a*- and*n*-values are given and display as Generalized Fermat number`a`^{2n}+1 - three parameters: the
*a*-,*b*- and*n*-values given and display as Extended Generalized Fermat number a^{2n}+ b^{2n}

## Examples

`{{NGF|123}}`

: Fermat 2^{2123}+1`{{NGF|3|123}}`

: Gen. Fermat 3^{2123}+1`{{NGF|5|3|123}}`

: xGen. Fermat 5^{2123}+3^{2123}