A063273 Number of times most common digit of primes appears in first n primes.
1, 1, 1, 1, 2, 3, 4, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 11, 12, 13, 14, 16, 17, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 31, 33, 34, 35, 36, 38, 38, 38, 38, 38, 38, 39, 40, 40, 40, 40, 41, 41, 42, 42, 42, 42, 44, 45, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47
Offset: 1
Examples
a(6)=3 since first six primes are 2,3,5,7,11,13, so most common digit is 1 which has appeared 3 times.
Links
- Enrique Pérez Herrero, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
A063273[n_Integer]:=Max[Tally[Flatten[IntegerDigits[Prime[Range[n]]]]][[All,2]]]; Array[A063273, 100] (* Enrique Pérez Herrero, Jun 04 2011 *)
Comments