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

From Prime-Wiki
Jump to: navigation, search
m
(cat. Gen. -> Gen)
Line 8: Line 8:
 
*one parameter: the ''n''-value is given and displays as [[Fermat number]] {{Kbn|+|n}}
 
*one parameter: the ''n''-value is given and displays as [[Fermat number]] {{Kbn|+|n}}
 
*two parameters: the ''k''- and ''n''-values are given and displays as [[Proth number]] {{Kbn|+|k|2|n}}
 
*two parameters: the ''k''- and ''n''-values are given and displays as [[Proth number]] {{Kbn|+|k|2|n}}
*three parameters: the ''k''- and ''n''-values and the base ''b'' given and displays as [[Gen. Proth number]] {{Kbn|+|k|b|n}}
+
*three parameters: the ''k''- and ''n''-values and the base ''b'' given and displays as [[Gen Proth number]] {{Kbn|+|k|b|n}}
  
 
==Examples==
 
==Examples==
Line 18: Line 18:
 
|1=[[Proth prime 1|Fermat {{Kbn|+|{{{1}}}}}]]
 
|1=[[Proth prime 1|Fermat {{Kbn|+|{{{1}}}}}]]
 
|2=[[Proth prime {{{1}}}|Proth {{Kbn|+|{{{1}}}|{{{2}}}}}]]
 
|2=[[Proth prime {{{1}}}|Proth {{Kbn|+|{{{1}}}|{{{2}}}}}]]
|3=[[Gen. Proth prime {{{2}}} {{{1}}}|Gen. Proth {{Kbn|+|{{{1}}}|{{{2}}}|{{{3}}}}}]]}}</includeonly>
+
|3=[[Gen Proth prime {{{2}}} {{{1}}}|Gen Proth {{Kbn|+|{{{1}}}|{{{2}}}|{{{3}}}}}]]}}</includeonly>

Revision as of 10:41, 2 November 2020

Purpose

Displays a Proth number of the form kbn+1 with link to the page.

Usage

This template uses one to three unnamed parameters which are defined as follows:

{{NPr|<k-value>|<base>|<n-value>}}
  • one parameter: the n-value is given and displays as Fermat number 2n+1
  • two parameters: the k- and n-values are given and displays as Proth number k•2n+1
  • three parameters: the k- and n-values and the base b given and displays as Gen Proth number kbn+1

Examples