OFFSET
0,2
FORMULA
a(n) = floor(n/2)*131071 + (n modulo 2)*131070
PROG
(MIT Scheme:) (define (A165478 n) (+ (* (floor->exact (/ n 2)) 131071) (* (modulo n 2) 131070)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 21 2009
STATUS
approved