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 |
Template:NCu
Purpose
Displays (Gen./Near) Cullen numbers with link to the page.
Usage
This templates uses one to three unnamed parameters which are defined as follows:
- one parameter: the n-value is given and displays a Cullen prime n•2n+1
- two parameters:
- if first parameter is a sign (+/-): displays a Gen. Cullen prime P (n+1)•2n+1 or Gen. Cullen prime M (n-1)•2n+1
- if first parameter is a number: displays a Gen. Cullen prime n•bn+1
- three parameters: displays a Gen. Cullen prime P (n+1)•bn+1 or Gen. Cullen prime M (n-1)•bn+1
Examples
{{NCu|123}}
: Cullen 123•2123+1{{NCu|+|123}}
: Near Cullen 124•2123+1{{NCu|-|123}}
: Near Cullen 122•2123+1{{NCu|3|123}}
: Cullen 123•3123+1{{NCu|+|3|123}}
: Near Cullen 124•3123+1{{NCu|-|3|123}}
: Near Cullen 122•3123+1