login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037911 Number of i such that |d(i) - d(i-1)| = 1, where Sum_{i=0..m} d(i)*8^i is the base-8 representation of n. 8

%I #11 Oct 29 2018 02:24:19

%S 0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,

%T 1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,1,2,1,1,1,

%U 1,1,1,1,0,1,0,0,0,0,0,1,2,1,2,1,1,1,1,0,0,1

%N Number of i such that |d(i) - d(i-1)| = 1, where Sum_{i=0..m} d(i)*8^i is the base-8 representation of n.

%H Iain Fox, <a href="/A037911/b037911.txt">Table of n, a(n) for n = 1..10000</a>

%o (PARI) a(n) = my(c); for(i=2, #n=digits(n, 8), if(abs(n[i]-n[i-1])==1, c++)); c \\ _Iain Fox_, Oct 28 2018

%Y In base b: A037906 (b=3), A037907 (b=4), A037908 (b=5), A037909 (b=6), A037910 (b=7), A037912 (b=9), A037913 (b=10).

%K nonn,base

%O 1,65

%A _Clark Kimberling_

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 13:22 EDT 2024. Contains 371969 sequences. (Running on oeis4.)