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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A083187 a(n) = floor(log_3/2(n+1)) - floor(log_3/2(n)). 1
1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 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, 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, 1, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(n) = 1 for n in A002379.

LINKS

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

Index entries for characteristic functions

PROG

(PARI) for(n=1, 100, print1(floor(log(n+1)/log(3/2))-floor(log(n)/log(3/2))", "))

(PARI)

A002379(n) = ((3^n)>>n); \\ This function from Charles R Greathouse IV, Jun 10 2011

A083187(n) = { my(k=1); while(A002379(k)<n, k++); (A002379(k)==n); }; \\ Antti Karttunen, Dec 15 2017

CROSSREFS

Characteristic function of A002379.

Sequence in context: A088025 A082416 A093996 * A080339 A167752 A100923

Adjacent sequences:  A083184 A083185 A083186 * A083188 A083189 A083190

KEYWORD

nonn,easy

AUTHOR

Ralf Stephan, Jun 01 2003

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 17 05:59 EST 2018. Contains 317275 sequences. (Running on oeis4.)