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

 


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045524 Numbers k such that k! has initial digit '5'. 18

%I #26 Feb 23 2024 13:19:37

%S 7,21,38,46,61,66,81,119,137,144,150,165,189,196,206,209,221,224,235,

%T 243,248,253,258,279,292,340,342,353,362,383,413,429,440,488,508,529,

%U 540,584,597,611,630,651,662,679,685,704,711,718,725,732,764,782,812

%N Numbers k such that k! has initial digit '5'.

%C n such that A000030(A000142(n)) = 5. - _Robert Israel_, Feb 07 2017

%C The asymptotic density of this sequence is log_10(6/5) = 0.079181... (Kunoff, 1987). - _Amiram Eldar_, Jul 17 2020

%H Chai Wah Wu, <a href="/A045524/b045524.txt">Table of n, a(n) for n = 1..10000</a>

%H Sharon Kunoff, <a href="https://www.fq.math.ca/Scanned/25-4/kunoff.pdf">N! has the first digit property</a>, The Fibonacci Quarterly, Vol. 25, No. 4 (1987), pp. 365-367.

%H <a href="/index/Fa#factorial">Index entries for sequences related to factorial numbers</a>

%F A008905(a(n)) = 5. - _Amiram Eldar_, Jul 17 2020

%e 7 is a term since 7! = 5040 has the initial digit 5.

%p filter:= proc(t) local tf;

%p tf:= t!;

%p floor(tf/10^ilog10(tf)) = 5

%p end proc:

%p select(filter, [$1..1000]); # _Robert Israel_, Feb 07 2017

%t Select[ Range[ 850 ], IntegerDigits[ #! ] [[1]] == 5 & ]

%o (PARI) isok(n) = digits(n!)[1] == 5; \\ _Michel Marcus_, Feb 08 2017

%Y For factorials with initial digit d (1 <= d <= 9) see A045509, A045510, A045511, A045516, A045517, A045518, A282021, A045519; A045520, A045521, A045522, A045523, A045525, A045526, A045527, A045528, A045529.

%Y Cf. A000030, A000142, A008905.

%K nonn,base

%O 1,1

%A _Jeff Burch_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 19 01:02 EDT 2024. Contains 376002 sequences. (Running on oeis4.)