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"
m |
(factorization) |
||
Line 35: | Line 35: | ||
7,14 | 7,14 | ||
17353230210429594579133099699123162989482444520899,15 | 17353230210429594579133099699123162989482444520899,15 | ||
+ | P345 | ||
C1133,1100000000212123761 | C1133,1100000000212123761 | ||
− | |||
|GFNState=Composite | |GFNState=Composite | ||
|GFNRemarks=test | |GFNRemarks=test | ||
Line 52: | Line 52: | ||
7,14 | 7,14 | ||
17353230210429594579133099699123162989482444520899,15 | 17353230210429594579133099699123162989482444520899,15 | ||
+ | P345 | ||
C1133,1100000000212123761 | C1133,1100000000212123761 | ||
− | |||
|GFNState=Composite | |GFNState=Composite | ||
|GFNRemarks=test | |GFNRemarks=test | ||
Line 89: | Line 89: | ||
}} | }} | ||
==Factors== | ==Factors== | ||
− | {{#arraydefine:GFNlist|{{{GFNFactors}}}|/\n/}}{{#loop:i|0|{{#arraysize:GFNlist}} | + | {{#vardefine:facts|}}{{#arraydefine:GFNlist|{{{GFNFactors}}}|/\n/}}{{#loop:i|0|{{#arraysize:GFNlist}} |
|<nowiki /> | |<nowiki /> | ||
*{{#vardefine:k|{{#explode:{{#arrayindex:GFNlist|{{#var:i}}}}|,|0}}}}<!-- | *{{#vardefine:k|{{#explode:{{#arrayindex:GFNlist|{{#var:i}}}}|,|0}}}}<!-- | ||
Line 95: | Line 95: | ||
-->{{#vardefine:dat|}}<!-- | -->{{#vardefine:dat|}}<!-- | ||
-->{{#switch:{{#sub:{{#var:k}}|0|1}} | -->{{#switch:{{#sub:{{#var:k}}|0|1}} | ||
− | |C=Composite {{#if:{{#var:n}}|[http://factordb.com/index.php?id={{#var:n}} {{#var:k}}]|{{#var:k}}}} | + | |C=Composite {{#if:{{#var:n}}|[http://factordb.com/index.php?id={{#var:n}} {{#var:k}}]{{#vardefine:facts|{{#var:facts}} * [http://factordb.com/index.php?id={{#var:n}} {{#var:k}}]}}|{{#var:k}}{{#vardefine:facts|{{#var:facts}} * {{#var:k}}}}}} |
− | |P=Prime {{#if:{{#var:n}}|[http://factordb.com/index.php?id={{#var:n}} {{#var:k}}]|{{#var:k}}}} | + | |P=Prime {{#if:{{#var:n}}|[http://factordb.com/index.php?id={{#var:n}} {{#var:k}}]{{#vardefine:facts|{{#var:facts}} * [http://factordb.com/index.php?id={{#var:n}} {{#var:k}}]}}|{{#var:k}}{{#vardefine:facts|{{#var:facts}} * {{#var:k}}}}}} |
− | |#default={{NPr|{{#var:k}}|{{#var:n}}}} ([[GF Divisor {{#var:k}} {{#var:n}}|GF Divisor]]){{#ifexist:GF Divisor {{#var:k}} {{#var:n}}|{{#vardefine:dat|{{GFDivisor get disc|GF Divisor {{#var:k}} {{#var:n}}|{{{GFNa}}},{{{GFNb}}},}}}}}} | + | |#default={{NPr|{{#var:k}}|{{#var:n}}}} ([[GF Divisor {{#var:k}} {{#var:n}}|GF Divisor]]){{#ifexist:GF Divisor {{#var:k}} {{#var:n}}|{{#vardefine:dat|{{GFDivisor get disc|GF Divisor {{#var:k}} {{#var:n}}|{{{GFNa}}},{{{GFNb}}},}}}}{{#vardefine:factn|{{GP|GF Divisor {{#var:k}} {{#var:n}}|GFNumber}}}}{{#if:{{#var:factn}}|{{#vardefine:facts|{{#var:facts}} * {{#var:factn}}}}}}}} |
}}<!-- | }}<!-- | ||
-->{{#if:{{#var:dat}}|, found {{#explode:{{#var:dat}}| |0}} by }}{{#arraydefine:disc|{{#explode:{{#var:dat}}| |1}}|/;/}}{{#arrayprint:disc|, |@@@|[[@@@]]}}<!-- | -->{{#if:{{#var:dat}}|, found {{#explode:{{#var:dat}}| |0}} by }}{{#arraydefine:disc|{{#explode:{{#var:dat}}| |1}}|/;/}}{{#arrayprint:disc|, |@@@|[[@@@]]}}<!-- | ||
-->{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Generalized Fermat number {{{GFNa}}} {{{GFNb}}}|#.....{{padleft:{{{GFNn}}}|5|0}}]]}} | -->{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Generalized Fermat number {{{GFNa}}} {{{GFNb}}}|#.....{{padleft:{{{GFNn}}}|5|0}}]]}} | ||
− | }}</includeonly> | + | }} |
+ | ==Factorization== | ||
+ | {{#vardefine:facts|{{#sub:{{#var:facts}}|3}}}}{{#var:facts}} | ||
+ | </includeonly> |
Revision as of 20:30, 22 June 2021
Description
Template Generalized Fermat number
Collect the data of a Generalized Fermat number (for b=1 this is a Fermat number).
Prototype
{{Generalized Fermat number |GFNa= |GFNb= |GFNn= |GFNFDBid= |GFNDigits= |GFNFactors= |GFNState= |GFNRemarks= }}
Parameters
See also
Example
{{Generalized Fermat number |GFNa=2 |GFNb=1 |GFNn=207 |GFNFDBid=1000000000002000017 |GFNDigits=1234 |GFNFactors= 3,41 7,14 17353230210429594579133099699123162989482444520899,15 P345 C1133,1100000000212123761 |GFNState=Composite |GFNRemarks=test }}
will create:
Current data
|
Remarks : |
test |
Factors
- Proth 3•241+1 (GF Divisor), found 1903 by James Cullen, Allan Cunningham, Alfred Edward Western
- Proth 7•214+1 (GF Divisor), found 1877 by Ivan Mikheevich Pervushin, Édouard Lucas
- Proth 17353230210429594579133099699123162989482444520899•215+1 (GF Divisor)17353230210429594579133099699123162989482444520899
- Prime P<345>
- Composite C<1133>
Factorization
6597069766657<13> * 114689 * 17353230210429594579133099699123162989482444520899 * P<345> * C<1133>