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:Generalized Fermat number"

From Prime-Wiki
Jump to: navigation, search
m
(link to FactorDB ID/formula)
Line 4: Line 4:
  
 
Collect the data of a [[Generalized Fermat number]] {{V|a}}<sup>2<sup>{{Vn}}</sup></sup> + {{V|b}}<sup>2<sup>{{Vn}}</sup></sup>, for {{Vb}}=1 this is a [[Fermat number]] {{V|a}}<sup>2<sup>{{Vn}}</sup></sup> + 1.
 
Collect the data of a [[Generalized Fermat number]] {{V|a}}<sup>2<sup>{{Vn}}</sup></sup> + {{V|b}}<sup>2<sup>{{Vn}}</sup></sup>, for {{Vb}}=1 this is a [[Fermat number]] {{V|a}}<sup>2<sup>{{Vn}}</sup></sup> + 1.
 
If {{V|a}}+{{V|b}} is even, the numbers are always divisible by 2 and so this factor is not given here.
 
  
 
==Prototype==
 
==Prototype==
Line 22: Line 20:
  
 
==Parameters==
 
==Parameters==
 +
If 'GFNa'+'GFNb' is even, the numbers are always divisible by 2 and so 2 is not given as factor here.
 +
 +
If 'GFNFDBid' is given, a link to the [[Factoring Database|FactorDB]] is created, otherwise only the number in standard notation is given.
  
 
==See also==
 
==See also==
 +
*[[Template:GF Divisor|GF Divisor]]
  
 
==Example==
 
==Example==
Line 74: Line 76:
 
   | align="right"| <b>{{Vn}} :</b> || {{{GFNn}}}-->
 
   | align="right"| <b>{{Vn}} :</b> || {{{GFNn}}}-->
 
   |-
 
   |-
   {{!}} align="right"{{!}} <b>Number :</b> {{!}}{{!}} {{#ifeq:{{{GFNb}}}|1|{{#ifeq:{{{GFNa}}}|2|{{NGF|{{{GFNn}}}}}|{{NGF|{{{GFNa}}}|{{{GFNn}}}}}}}|{{NGF|{{{GFNa}}}|{{{GFNb}}}|{{{GFNn}}}}}}} {{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2|| div 2}} {{#if:{{{GFNFDBid}}}|([http://factordb.com/index.php?id={{{GFNFDBid}}} FactorDB])}}
+
{{#if:{{{GFNFDBid|}}}|
 +
   {{!}} align="right"{{!}} [[Factoring Database|FactorDB]] : {{!}}{{!}} <b>ID:</b> [http://factordb.com/index.php?id={{{GFNFDBid}}} {{{GFNFDBid}}}] / <b>Formula:</b> {{#ifeq:{{{GFNb}}}|1|{{#ifeq:{{{GFNa}}}|2|[http://factordb.com/index.php?query=2^2^{{{GFNn}}}%2B1 2<sup>2<sup>{{{GFNn}}}</sup></sup>+1]|[http://factordb.com/index.php?query={{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2||(}}{{{GFNa}}}^2^{{{GFNn}}}%2B1{{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2||)%2F2}} {{{GFNa}}}<sup>2<sup>{{{GFNn}}}</sup></sup>+1]}}|
 +
[http://factordb.com/index.php?query={{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2||(}}{{{GFNa}}}^2^{{{GFNn}}}%2B{{{GFNb}}}^2^{{{GFNn}}}{{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2||)%2F2}} {{{GFNa}}}<sup>2<sup>{{{GFNn}}}</sup></sup>+{{{GFNb}}}<sup>2<sup>{{{GFNn}}}</sup></sup>]}} {{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2|| div 2}}|
 +
  {{!}} align="right"{{!}} <b>Number :</b> {{!}}{{!}} {{#ifeq:{{{GFNb}}}|1|{{#ifeq:{{{GFNa}}}|2|2<sup>2<sup>{{{GFNn}}}</sup></sup>+1|{{{GFNa}}}<sup>2<sup>{{{GFNn}}}</sup></sup>+1}}|{{{GFNa}}}<sup>2<sup>{{{GFNn}}}</sup></sup>+{{{GFNb}}}<sup>2<sup>{{{GFNn}}}</sup></sup>}} {{#ifexpr:({{{GFNa}}}+{{{GFNb}}}) mod 2|| div 2}}
 +
}}
 
   |-
 
   |-
 
{{#if:{{{GFNDigits|}}}|
 
{{#if:{{{GFNDigits|}}}|

Revision as of 13:48, 4 August 2021

Description

Template Generalized Fermat number

Collect the data of a Generalized Fermat number a2n + b2n, for b=1 this is a Fermat number a2n + 1.

Prototype

{{Generalized Fermat number
|GFNa=
|GFNb=
|GFNn=
|GFNFDBid=
|GFNDigits=
|GFNFactors=
|GFNState=
|GFNRemarks=
}}

Parameters

If 'GFNa'+'GFNb' is even, the numbers are always divisible by 2 and so 2 is not given as factor here.

If 'GFNFDBid' is given, a link to the FactorDB is created, otherwise only the number in standard notation is given.

See also

Example

{{Generalized Fermat number
|GFNa=2
|GFNb=1
|GFNn=207
|GFNFDBid=1000000000002000017
|GFNDigits=1234
|GFNFactors=
3,5
3,209
7,14
15288227662166113,8
N1100000000000108402,7
P345
C1133,1100000000212123761
|GFNState=CF
|GFNRemarks=test
}}

will create:

Current data

a b n : 2 1 207
FactorDB : ID: 1000000000002000017 / Formula: 22207+1
Digits : 1234
State : CF
Remarks :
test

Factors

Factorization

97 * 2468256835981809063232453773836025757474103798450369795022913537<64> * 114689 * 3913786281514524929<19> * Long number:N1100000000000108402-NS(Long number:N1100000000000108402-DI) * P<345> * C<1133>