cullen: Returns the Cullen number integer sequence up to a given...

Description Usage Arguments Value References Examples

Description

Cullen numbers are a special case of Proth numbers that have the form:

C_n = 2^n n + 1

The first few Cullen numbers are 3, 9, 25, 65, 161, ...

Usage

1
cullen(n)

Arguments

n

Specifies the length of the Cullen number sequence to return

Value

vector of length n

References

Cullen number. (2018, January 22). In Wikipedia, The Free Encyclopedia. Retrieved 14:17, January 27, 2018, from https://en.wikipedia.org/w/index.php?title=Cullen_number&oldid=821774732 Weisstein, Eric W. "Cullen Number." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/CullenNumber.html

Examples

1
cullen(5)

aschleg/numberr documentation built on May 14, 2019, 10:31 a.m.