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!)
A031266 a(n)=(# 1's)-(# 2's) in first n terms of A031253. 0

%I #6 Apr 16 2024 11:48:45

%S 1,1,2,2,3,2,3,3,2,3,2,2,2,2,2,1,1,1,1,2,2,2,3,3,3,4,4,3,4,4,4,5,6,7,

%T 8,9,9,10,9,9,10,9,8,9,8,8,9,9,10,11,11,11,12,12,12,13,13,12,13,13,13,

%U 12,12,13,12,12,12,11,12,12,11,12,11,10,11,11

%N a(n)=(# 1's)-(# 2's) in first n terms of A031253.

%t Accumulate[Which[#==1,1,#==2,-1,True,0]&/@(Table[IntegerDigits[2n-1,5],{n,60}]//Flatten)] (* _Harvey P. Dale_, Apr 16 2024 *)

%K nonn,changed

%O 1,3

%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 12:53 EDT 2024. Contains 371969 sequences. (Running on oeis4.)