OFFSET
1,6
LINKS
FORMULA
a(n) ~ n/phi(10) = n/4 by the Prime Number Theorem in Arithmetic Progressions. - Charles R Greathouse IV, Dec 29 2012
EXAMPLE
a(6)=2 since first six primes are 2,3,5,7,11,13, so most common final digit is 3 which has appeared twice.
MAPLE
V:= Vector(9):
p:= 1:
for n from 1 to 100 do
p:= nextprime(p);
r:= p mod 10;
V[r]:= V[r]+1;
A[n]:= max(V)
od:
seq(A[i], i=1..100); # Robert Israel, Jul 22 2018
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Henry Bottomley, Jul 13 2001
STATUS
approved