A177901 Numbers n > 1 such that log_10(n!) is closer to an integer than at any smaller n.
2, 3, 5, 14, 22, 27, 35, 95, 96, 197, 261, 5935, 7399, 8998, 11671, 17411, 108965, 165535, 258335, 549545, 1542194, 2064173, 4146167, 4594140, 5814278, 9242360, 21603225, 28563732, 40700787, 54528830, 252544447, 1430841730, 5042264463, 11012237562, 31774693500
Offset: 1
Keywords
Examples
From _Jon E. Schoenfield_, Dec 02 2014: (Start) This sequence contains a subset of each of two related sequences: A249829 and A250022 (values of n at which the fractional part of log_10(n!) reaches a record high or a record low, respectively). To see how they interrelate, consider the following four integers (two from each of those sequences): +------------------------+-----------------------+ | log_10(n!) | Member of sequence | +----------+-------------+-------+-------+-------+ n | near int | difference |A249829|A250022|A177901| =======+==========+=============+=======+=======+=======+ 1542194| 8873548 | +0.00000133 | yes | no | yes | 1692693| 9807947 | -0.00000158 | no | yes | no | 2064173| 12138273 | -0.00000030 | no | yes | yes | 2159448| 12740851 | +0.00000052 | yes | no | no | =======+==========+=============+=======+=======+=======+ . At n=1542194, log_10(n!) = 8873548.00000133 differs from its nearest integer by only 0.00000133; this absolute difference is less than that at any smaller value of n, so 1542194 is in this sequence. At n=1692693, log_10(n!) = 9807946.99999842 differs from its nearest integer by only 0.00000158; although the fractional part reaches a record high, this absolute difference is greater than that at n=1542194, so 1692693 is not in this sequence. At n=2064173, log_10(n!) = 12138272.99999970 differs from its nearest integer by only 0.00000030; this absolute difference is less than that at any smaller value of n, so 2064173 is in this sequence. At n=2159448, log_10(n!) = 12740851.00000052 differs from its nearest integer by only 0.00000052; although the fractional part reaches a record low, this absolute difference is greater than that at n=2064173, so 2159448 is not in this sequence. (End)
Links
- Jon E. Schoenfield, Table of n, a(n) for n = 1..40
- Noam D. Elkies, A counterexample to Kamenetsky's formula for the number of digits in n-factorial
Programs
-
Mathematica
mx=1; s=0; Reap[Do[s=s+N[Log[10,n], 30]; d=Abs[Round[s]-s]; If[d
Extensions
a(31)-a(35) from Jon E. Schoenfield, Nov 11 2014
Comments