OFFSET
1,1
COMMENTS
LINKS
Edd Mann, Mystery Calculator.
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,1,-1).
FORMULA
G.f.: -(x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+8)*x / (-x^9+x^8+x-1). - Alois P. Heinz, Aug 22 2011
EXAMPLE
a(1) = 8 = 1000 in binary.
MAPLE
a:= n-> n+7 + 8*iquo(n-1, 8):
seq(a(n), n=1..100); # Alois P. Heinz, Aug 22 2011
PROG
(PARI) a(n)=(n-1)\8*16+(n-1)%8+8 \\ Charles R Greathouse IV, May 06 2013
(Python)
def A115419(n): return ((n-1<<1)&-7|8)+(n-1&7) # Chai Wah Wu, Mar 28 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jeremy Gardiner, Jan 22 2006
STATUS
approved