login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A099395 One if odd part of n is 3, zero otherwise. 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Characteristic function of A007283.

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..65537

Index entries for characteristic functions

FORMULA

G.f.: Sum[k>=0, x^(3*2^k) ].

MATHEMATICA

Differences[Join[{0, 0}, Floor[Log[2, 2/3 Range[2, 130]]]]] (* Harvey P. Dale, Mar 01 2012 *)

PROG

(Scheme) (define (A099395 n) (if (= 3 (A000265 n)) 1 0)) ;; Antti Karttunen, Dec 06 2017

CROSSREFS

First differences of A099396.

Cf. A000265, A007283.

Sequence in context: A284524 A226474 A080887 * A182581 A288203 A238470

Adjacent sequences:  A099392 A099393 A099394 * A099396 A099397 A099398

KEYWORD

nonn

AUTHOR

Ralf Stephan, Oct 21 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 09:35 EDT 2019. Contains 322385 sequences. (Running on oeis4.)