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:NRi"
(name Gen. -> Gen) |
m |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Purpose== | ==Purpose== | ||
− | Displays a [[Riesel number]] of the form {{Kbn| | + | Displays a [[Riesel number]] of the form {{Kbn|k|b|n}} with link to the page. |
==Usage== | ==Usage== | ||
This template uses one to three unnamed parameters which are defined as follows: | This template uses one to three unnamed parameters which are defined as follows: | ||
:<code><nowiki>{{NRi|<k-value>|<base>|<n-value>}}</nowiki></code> | :<code><nowiki>{{NRi|<k-value>|<base>|<n-value>}}</nowiki></code> | ||
− | *one parameter: the | + | *one parameter: the {{Vn}}-value is given and displays as [[Mersenne number]] {{Kbn|n}} |
− | *two parameters: the | + | *two parameters: the {{Vk}}- and {{Vn}}-values are given and displays as [[Riesel number]] {{Kbn|k|2|n}} |
− | *three parameters: the | + | *three parameters: the {{Vk}}- and {{Vn}}-values and the base {{Vb}} given and displays as [[Riesel number]] {{Kbn|k|b|n}} |
==Examples== | ==Examples== | ||
Line 16: | Line 16: | ||
[[Category:Templates]]</noinclude><includeonly>{{#vardefine:args|0}}{{#if:{{{3|}}}|{{#vardefine:args|3}}|{{#if:{{{2|}}}|{{#vardefine:args|2}}|{{#vardefine:args|1}}}}}}{{#switch:{{#var:args}} | [[Category:Templates]]</noinclude><includeonly>{{#vardefine:args|0}}{{#if:{{{3|}}}|{{#vardefine:args|3}}|{{#if:{{{2|}}}|{{#vardefine:args|2}}|{{#vardefine:args|1}}}}}}{{#switch:{{#var:args}} | ||
− | |1=[[Riesel prime 1|Mersenne {{Kbn|{{{1}}}}}]] | + | |1=[[Riesel prime 2 1|Mersenne {{Kbn|{{{1}}}}}]] |
− | |2=[[Riesel prime {{{1}}}|Riesel {{Kbn|{{{1}}}|{{{2}}}}}]] | + | |2=[[Riesel prime 2 {{{1}}}|Riesel {{Kbn|{{{1}}}|{{{2}}}}}]] |
− | |3=[[Riesel prime {{{2}}} {{{1}}}| | + | |3=[[Riesel prime {{{2}}} {{{1}}}|Riesel {{Kbn|{{{1}}}|{{{2}}}|{{{3}}}}}]]}}</includeonly> |
Revision as of 12:18, 15 July 2021
Purpose
Displays a Riesel number of the form k•bn-1 with link to the page.
Usage
This template uses one to three unnamed parameters which are defined as follows:
{{NRi|<k-value>|<base>|<n-value>}}
- one parameter: the n-value is given and displays as Mersenne number 2n-1
- two parameters: the k- and n-values are given and displays as Riesel number k•2n-1
- three parameters: the k- and n-values and the base b given and displays as Riesel number k•bn-1
Examples
{{NRi|123}}
: Mersenne 2123-1{{NRi|3|123}}
: Riesel 3•2123-1{{NRi|5|3|123}}
: Riesel 5•3123-1