A045527 Numbers k such that k! has initial digit '8'.
14, 29, 31, 33, 40, 52, 60, 65, 71, 79, 121, 131, 145, 151, 246, 251, 256, 286, 303, 329, 346, 357, 373, 423, 434, 448, 478, 494, 543, 579, 610, 650, 678, 684, 703, 738, 746, 754, 771, 780, 810, 834, 847
Offset: 1
Examples
14 is a term since 14! = 87178291200 has the initial digit 8.
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..10000
- Sharon Kunoff, N! has the first digit property, The Fibonacci Quarterly, Vol. 25, No. 4 (1987), pp. 365-367.
- Index entries for sequences related to factorial numbers
Crossrefs
Programs
-
Mathematica
Select[ Range[ 900 ], IntegerDigits[ #! ] [ [1] ] == 8 & ]
-
PARI
isok(n) = digits(n!)[1] == 8; \\ Michel Marcus, Feb 08 2017
Formula
A008905(a(n)) = 8. - Amiram Eldar, Jul 17 2020
Comments