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"

From Prime-Wiki
Jump to: navigation, search
(new)
 
(use <var>)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Purpose==
 
==Purpose==
Displays a [[Riesel number]] of the form {{Kbn|k|b|n}} with link to the page.
+
Displays a [[Riesel number]] of the form {{Kbn|<var>k</var>|<var>b</var>|<var>n</var>}} 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 ''n''-value is given and displays as [[Mersenne number]] {{Kbn|n}}
+
*one parameter: the <var>n</var>-value is given and displays as [[Mersenne number]] {{Kbn|<var>n</var>}}
*two parameters: the ''k''- and ''n''-values are given and displays as [[Riesel number]] {{Kbn|k|2|n}}
+
*two parameters: the <var>k</var>- and <var>n</var>-values are given and displays as [[Riesel number]] {{Kbn|<var>k</var>|2|<var>n</var>}}
*three parameters: the ''k''- and ''n''-values and the base ''b'' given and displays as [[Riesel number]] {{Kbn|k|b|n}}
+
*three parameters: the <var>k</var>- and <var>n</var>-values and the base <var>b</var> given and displays as [[Riesel number]] {{Kbn|<var>k</var>|<var>b</var>|<var>n</var>}}
  
 
==Examples==
 
==Examples==

Revision as of 11:57, 10 August 2020

Purpose

Displays a Riesel 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:

{{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 kbn-1

Examples