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
m
m
 
(27 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
|GFk=
 
|GFk=
 
|GFn=
 
|GFn=
|DFDate=
+
|GFNumber=
|GFDiscoverer=
+
|GFFDBid=
 
|GFList=
 
|GFList=
 
|GFRemarks=
 
|GFRemarks=
Line 18: Line 18:
  
 
==Parameters==
 
==Parameters==
 
  
 
==See also==
 
==See also==
Line 27: Line 26:
 
|GFk=3
 
|GFk=3
 
|GFn=209
 
|GFn=209
|GFDate=2020-11-11
+
|GFNumber=2468256835981809063232453773836025757474103798450369795022913537
|GFDiscoverer=Karsten Bonath
+
|GFFDBid=1000000000002010233
 
|GFList=
 
|GFList=
2,1,207
+
2,1,207#2020-11-11#Hans Riesel,Ray Ballinger,David Broadhurst,(bigger team)
3,1,207
+
3,1,207#1995#Allan Cunningham
 
3,2,207
 
3,2,207
 
|GFRemarks=test
 
|GFRemarks=test
Line 40: Line 39:
 
|GFk=3
 
|GFk=3
 
|GFn=209
 
|GFn=209
|GFDate=2020-11-11
+
|GFNumber=2468256835981809063232453773836025757474103798450369795022913537
|GFDiscoverer=Karsten Bonath
+
|GFFDBid=1000000000002010233
 
|GFList=
 
|GFList=
2,1,207
+
2,1,207#2020-11-11#Hans Riesel,Ray Ballinger,David Broadhurst,(bigger team)
3,1,207
+
3,1,207#1995#Allan Cunningham
 
3,2,207
 
3,2,207
 
|GFRemarks=test
 
|GFRemarks=test
 
}}
 
}}
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{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"
| class="primetemplate" |
+
| class="primetemplate color-PrimeTemplate" |
  {|<!--
+
  {|
   | align="right"| <b>{{Vk}}-value :</b> || {{{GFk}}}
+
   | align="right"| <b>Number :</b> || {{#ifeq:{{#var:ln}}|1|{{NPr|{{Long number:{{{GFk}}}-NS}}({{Long number:{{{GFk}}}-DI}})|{{{GFn}}}}} (&rarr; [[:Long number:{{{GFk}}}|Long number]])|{{NPr|{{{GFk}}}|{{{GFn}}}}}}}
 
   |-
 
   |-
   | align="right"| <b>{{Vn}}-value :</b> || {{{GFn}}}
+
{{#if:{{{GFNumber|}}}|
  |- -->
+
   {{!}} align="right"{{!}} <b>Decimals :</b> {{!}}{{!}} class="longline" {{!}}{{#ifeq:{{Is Long number|{{{GFNumber}}}}}|1|{{Long number:{{{GFNumber}}}-NS}}<sub><{{Long number:{{{GFNumber}}}-DI}}></sub> (&rarr; [[:Long number:{{{GFNumber}}}|Long number]])|{{#ifeq:{{#sub:{{{GFNumber}}}|0|1}}|P|P<sub><{{#sub:{{{GFNumber}}}|1}}></sub>|{{{GFNumber}}}<sub><{{#len:{{{GFNumber}}}}}></sub>}}}}
  | align="right"| <b>Number :</b> || {{NPr|{{{GFk}}}|{{{GFn}}}}}
+
}}
 
   |-
 
   |-
 +
{{#if:{{{GFFDBid|}}}|
 +
  {{!}} 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={{#replace:{{#replace:{{Long number:{{{GFk}}}-NL}}| |}}|\|}}*2^{{{GFn}}}%2B1 {{Long number:{{{GFk}}}-NS}}*2^{{{GFn}}}+1]}}
 +
}}
 +
<!--  |-
 
{{#if:{{{GFDate|}}}|
 
{{#if:{{{GFDate|}}}|
 
   {{!}} align="right"{{!}} <b>Date :</b> {{!}}{{!}} {{{GFDate}}}
 
   {{!}} align="right"{{!}} <b>Date :</b> {{!}}{{!}} {{{GFDate}}}
Line 65: Line 68:
 
{{#if:{{{GFDiscoverer|}}}|
 
{{#if:{{{GFDiscoverer|}}}|
 
   {{!}} align="right"{{!}} <b>Discoverer :</b> {{!}}{{!}} {{Contribs|{{{GFDiscoverer}}}}}
 
   {{!}} align="right"{{!}} <b>Discoverer :</b> {{!}}{{!}} {{Contribs|{{{GFDiscoverer}}}}}
}}
+
}}-->
 
  |}
 
  |}
 
|}
 
|}
Line 76: Line 79:
 
{{#arraydefine:list|{{{GFList}}}|/\n/}}{{#loop:i|0|{{#arraysize:list}}
 
{{#arraydefine:list|{{{GFList}}}|/\n/}}{{#loop:i|0|{{#arraysize:list}}
 
|<nowiki />
 
|<nowiki />
*{{#vardefine:a|{{#explode:{{#arrayindex:list|{{#var:i}}}}|,|-3}}}}{{#vardefine:b|{{#explode:{{#arrayindex:list|{{#var:i}}}}|,|-2}}}}{{#vardefine:m|{{#explode:{{#arrayindex:list|{{#var:i}}}}|,|-1}}}}{{#ifeq:{{#var:a}}|2|{{DGF|{{#var:m}}}}|{{#ifeq:{{#var:b}}|1|{{DGF|{{#var:m}}|{{#var:a}}}}|{{DGF|{{#var:m}}|{{#var:a}}|{{#var:b}}}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Generalized Fermat number {{#var:a}} {{#var:b}}]]}}
+
*{{#vardefine:a|{{#explode:{{#arrayindex:list|{{#var:i}}}}|,|0}}}}<!--
 +
-->{{#vardefine:b|{{#explode:{{#arrayindex:list|{{#var:i}}}}|,|1}}}}<!--
 +
-->{{#vardefine:m|{{#explode:{{#explode:{{#arrayindex:list|{{#var:i}}}}|,|2}}|#|0}}}}<!--
 +
-->{{#vardefine:dat|{{#explode:{{#arrayindex:list|{{#var:i}}}}|#|1}}}}<!--
 +
-->{{#ifeq:{{#var:a}}|2|{{#ifeq:{{#var:b}}|1|{{DGF|{{#var:m}}}}|{{DGF|{{#var:m}}|{{#var:a}}|{{#var:b}}}}}}|{{#ifeq:{{#var:b}}|1|{{DGF|{{#var:m}}|{{#var:a}}}}|{{DGF|{{#var:m}}|{{#var:a}}|{{#var:b}}}}}}}}<!--
 +
-->{{#if:{{#var:dat}}|, found {{#var:dat}} by&#32;}}{{Contribs|{{#explode:{{#arrayindex:list|{{#var:i}}}}|#|2}}}}<!--
 +
-->{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:GF Divisors|#.....{{padleft:{{GetLength|{{PAGENAME}}}}|5|0}}]][[Category:Generalized Fermat number {{#var:a}} {{#var:b}} Divs|#.....{{padleft:{{GetLength|{{PAGENAME}}}}|5|0}}]][[Category:Generalized Fermat number diffs {{#var:a}} {{#var:b}} {{#expr:{{{GFn}}}-{{#var:m}}}}|#.....{{padleft:{{GetLength|{{PAGENAME}}}}|5|0}}]]}}
 
}}
 
}}
{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
 
  -->[[Category:GF Divisor {{{GFk}}}|#.....{{padleft:{{{GFn}}}|5|0}}]]<!--
 
-->}}
 
 
</includeonly>
 
</includeonly>

Latest revision as of 09:55, 16 September 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,(bigger team)
3,1,207#1995#Allan Cunningham
3,2,207
|GFRemarks=test
}}

will create:

Current data

Number : Proth 3•2209+1
Decimals : 2468256835981809063232453773836025757474103798450369795022913537<64>
FactorDB : ID: 1000000000002010233 / Formula: 3*2^209+1
Remarks :
test

Divides