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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136691 Final nonzero digit of n! in base 4. 16

%I

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

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

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

%N Final nonzero digit of n! in base 4.

%H Harvey P. Dale, <a href="/A136691/b136691.txt">Table of n, a(n) for n = 0..1000</a>

%e 6! = 720 decimal = 23100 quartal, so a(6) = 1.

%t nzd[n_]:=Module[{rd=RealDigits[n!,4][[1]]},If[Last[rd]!=0,Last[rd], Last[ Flatten[Most[Split[rd]]]]]]; Array[nzd,100,0] (* _Harvey P. Dale_, May 08 2014 *)

%Y Cf. A000142, A136690, A136692, A136693, A136694, A136695, A136696, A008904, A136697, A136698, A136699, A136700, A136701, A136702.

%K base,easy,nonn

%O 0,3

%A _Carl R. White_, Jan 16 2008

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 18 12:18 EDT 2019. Contains 328160 sequences. (Running on oeis4.)