The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A037898 a(n)=(greatest base 4 digit of n)-(least base 4 digit of n). 2

%I #8 Feb 19 2020 13:42:40

%S 0,0,0,1,0,1,2,2,1,0,1,3,2,1,0,1,1,2,3,1,0,1,2,2,1,1,2,3,2,2,2,2,2,2,

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

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

%N a(n)=(greatest base 4 digit of n)-(least base 4 digit of n).

%p A037898 := proc(n)

%p local dgs ;

%p dgs := convert(n,base,4);

%p max(op(dgs))-min(op(dgs)) ;

%p end proc: # _R. J. Mathar_, Oct 19 2015

%t gb4[n_]:=Module[{idn4=IntegerDigits[n,4]},Max[idn4]-Min[idn4]]; Array[ gb4,120] (* _Harvey P. Dale_, Feb 19 2020 *)

%K nonn,base

%O 1,7

%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 June 11 15:33 EDT 2024. Contains 373311 sequences. (Running on oeis4.)