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:GF Divisor"

From Prime-Wiki
Jump to: navigation, search
Line 39: Line 39:
 
will create:
 
will create:
 
{{GF Divisor
 
{{GF Divisor
|GFk=3
+
|GFk=N1100000000000108402
|GFn=209
+
|GFn=7
 
|GFNumber=2468256835981809063232453773836025757474103798450369795022913537
 
|GFNumber=2468256835981809063232453773836025757474103798450369795022913537
 
|GFFDBid=1000000000002010233
 
|GFFDBid=1000000000002010233
Line 51: Line 51:
 
|GFRemarks=test
 
|GFRemarks=test
 
}}
 
}}
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#vardefine:ln|{{Is Long number|{{#explode:{{PAGENAME}}||-2}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifeq:{{#var:ln}}|1|{{DISPLAYTITLE:{{Kbn|+|{{Long number:N1100000000000108402-NS}}<sub><{{Long number:N1100000000000108402-DI}}></sub>|{{#explode:{{PAGENAME}}||-1}}}}}}|{{DISPLAYTITLE:GF Divisor {{Kbn|+|{{#explode:{{PAGENAME}}||-2}}|{{#explode:{{PAGENAME}}||-1}}}}}}}}}}
+
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#vardefine:ln|{{Is Long number|{{#explode:{{PAGENAME}}||-2}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifeq:{{#var:ln}}|1|{{DISPLAYTITLE:GF Divisor {{Long number:{{{GFk}}}-NS}}<sub><{{Long number:{{{GFk}}}-DI}}></sub>•2<sup>{{#explode:{{PAGENAME}}||-1}}</sup>+1|noerror}}|{{DISPLAYTITLE:GF Divisor {{Kbn|+|{{#explode:{{PAGENAME}}||-2}}|{{#explode:{{PAGENAME}}||-1}}}}|noerror}}}}}}
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"
Line 63: Line 63:
 
   |-
 
   |-
 
{{#if:{{{GFNumber|}}}|
 
{{#if:{{{GFNumber|}}}|
   {{!}} align="right"{{!}} <b>Decimals :</b> {{!}}{{!}} {{#ifexpr:{{#len:{{{GFNumber}}}}}>50|{{#sub:{{{GFNumber}}}|0|8}}...{{#sub:{{{GFNumber}}}|{{#expr:{{#len:{{{GFNumber}}}}}-2}}|2}}|{{{GFNumber}}}}}<sub><{{#len:{{{GFNumber}}}}}></sub>
+
   {{!}} align="right"{{!}} <b>Decimals :</b> {{!}}{{!}}
}}
+
{{#ifeq:{{#var:ln}}|1|{{Long number:{{{GFk}}}-NL}}|
 +
{{#ifexpr:{{#len:{{{GFNumber}}}}}>50|
 +
  {{#sub:{{{GFNumber}}}|0|8}}...{{#sub:{{{GFNumber}}}|{{#expr:{{#len:{{{GFNumber}}}}}-2}}|2}}|
 +
  {{{GFNumber}}}}}<sub><{{#len:{{{GFNumber}}}}}></sub>
 +
}}}}
 
   |-
 
   |-
 
{{#if:{{{GFFDBid|}}}|
 
{{#if:{{{GFFDBid|}}}|
   {{!}} align="right"{{!}} <b>[[Factoring Database|FactorDB]] :</b> {{!}}{{!}} <b>ID:</b> [http://factordb.com/index.php?id={{{GFFDBid}}} {{{GFFDBid}}}] / <b>Formula:</b> [http://factordb.com/index.php?query={{{GFk}}}*2^{{{GFn}}}%2B1 {{{GFk}}}*2^{{{GFn}}}+1]
+
   {{!}} align="right"{{!}} <b>[[Factoring Database|FactorDB]] :</b> {{!}}{{!}} <b>ID:</b> [http://factordb.com/index.php?id={{{GFFDBid}}} {{{GFFDBid}}}] / <b>Formula:</b> {{#ifeq:{{#var:ln}}|0|[http://factordb.com/index.php?query={{{GFk}}}*2^{{{GFn}}}%2B1 {{{GFk}}}*2^{{{GFn}}}+1]|[http://factordb.com/index.php?query={{Long number:{{{GFk}}}-NL}}*2^{{{GFn}}}%2B1 {{Long number:{{{GFk}}}-NL}}*2^{{{GFn}}}+1]}}
 
}}
 
}}
 
<!--  |-
 
<!--  |-

Revision as of 19:50, 29 June 2021

Description

Template GF Divisor

Collect the Generalized Fermat numbers for which a given Proth prime is a divisor.

Prototype

{{GF Divisor
|GFk=
|GFn=
|GFNumber=
|GFFDBid=
|GFList=
|GFRemarks=
}}

Parameters

See also

Example

{{GF Divisor
|GFk=3
|GFn=209
|GFNumber=2468256835981809063232453773836025757474103798450369795022913537
|GFFDBid=1000000000002010233
|GFList=
2,1,207,2020-11-11#Hans Riesel;Ray Ballinger;David Broadhurst
2,3,2
3,1,207,1995#Allan Cunningham
3,2,207
12,10,23
|GFRemarks=test
}}

will create:

Current data

Number : Proth N1100000000000108402•27+1
Decimals : 2468256835981809063232453773836025757474103798450369795022913537<64>
FactorDB : ID: 1000000000002010233 / Formula: N1100000000000108402*2^7+1
Remarks :
test

Divides