OFFSET
1,1
FORMULA
a(n) = round(1/(r^n - round(r^n))).
EXAMPLE
a(4)=13 since r^4 = 3.0795956..., 1/(3.0795956...-round(3.0795956...)) = 1/0.0795956... = 12.5635... and round(12.5635...) = 13.
CROSSREFS
KEYWORD
sign
AUTHOR
Henry Bottomley, May 22 2003
STATUS
approved