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:FDBCunningham"

From Prime-Wiki
Jump to: navigation, search
(restored)
 
(sign coded in web link corrected)
Line 25: Line 25:
  
 
The links to FactorDB are available.
 
The links to FactorDB are available.
__NOTOC__[[Category:Templates]]</noinclude><includeonly><span class="plainlinks">'''[http://factordb.com/index.php?query={{{1}}}%5En{{{2}}}1&use=n&n={{{3}}}&VP=on&VC=on&EV=on&OD=on&PR=on&FF=on&PRP=on&CF=on&U=on&C=on&perpage={{{4}}}&format=1&sent=Show HTML]'''</span> / <span class="plainlinks">'''[http://factordb.com/index.php?query={{{1}}}%5En{{{2}}}1&use=n&n={{{3}}}&VP=on&VC=on&EV=on&OD=on&PR=on&FF=on&PRP=on&CF=on&U=on&C=on&perpage={{{4}}}&format=3&sent=Show Text]'''</span></includeonly>
+
__NOTOC__[[Category:Templates]]</noinclude><includeonly>{{#vardefine:_sign|{{#switch:{{{2}}}|+=%2B|#default=-}}}}<span class="plainlinks">'''[http://factordb.com/index.php?query={{{1}}}%5En{{#var:_sign}}1&use=n&n={{{3}}}&VP=on&VC=on&EV=on&OD=on&PR=on&FF=on&PRP=on&CF=on&U=on&C=on&perpage={{{4}}}&format=1&sent=Show HTML]'''</span> / <span class="plainlinks">'''[http://factordb.com/index.php?query={{{1}}}%5En{{#var:_sign}}1&use=n&n={{{3}}}&VP=on&VC=on&EV=on&OD=on&PR=on&FF=on&PRP=on&CF=on&U=on&C=on&perpage={{{4}}}&format=3&sent=Show Text]'''</span></includeonly>

Revision as of 18:56, 21 January 2019

Template: FDBCunningham

Purpose

Create links to Factoring Database for the Cunningham Project in HTML and text formats.

Call

 {{FDBCunningham|<base>|<sign>|<start>|<count>}}

Parameters

  • <base>: the base of the table (bn+/-1)
  • <sign>: the sign: '+' or '-'
  • <start>: start value of n
  • <count>: number of n to show

Example

 {{FDBCunningham|2|-|1|100}}

will create the links for the Cunningham table for N = 2n-1 for n = 1 ... 100 and looks like this:

HTML / Text

The links to FactorDB are available.