A099395 One if odd part of n is 3, zero otherwise.
0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0
Offset: 1
Keywords
Links
Programs
-
Mathematica
Differences[Join[{0,0},Floor[Log[2,2/3 Range[2,130]]]]] (* Harvey P. Dale, Mar 01 2012 *)
-
Scheme
(define (A099395 n) (if (= 3 (A000265 n)) 1 0)) ;; Antti Karttunen, Dec 06 2017
Formula
G.f.: Sum_{k>=0} x^(3*2^k).
Comments