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