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!)
A037869 a(n) = (number of digits <=4)-(number of digits >4) in base 10 representation of n. 0

%I #10 Jul 30 2022 09:51:45

%S 1,1,1,1,-1,-1,-1,-1,-1,2,2,2,2,2,0,0,0,0,0,2,2,2,2,2,0,0,0,0,0,2,2,2,

%T 2,2,0,0,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,-2,-2,-2,-2,-2,0,0,0,0,0,

%U -2,-2,-2,-2,-2,0,0,0,0,0,-2,-2,-2,-2,-2,0,0

%N a(n) = (number of digits <=4)-(number of digits >4) in base 10 representation of n.

%t f[n_]:=Module[{dcn=Partition[RotateRight[DigitCount[n]], 5]},Total[First[dcn]]-Total[Last[dcn]]]; Array[f,90] (* _Harvey P. Dale_, May 17 2011 *)

%K base,sign

%O 0,10

%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 24 17:51 EDT 2024. Contains 371962 sequences. (Running on oeis4.)