OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, 23, ... so the average digits rounded down are; 2, 3, 5, 7, (1+1)/2 = 1, (1+3)/2 = 2, (1+7)/2 = 4, (1+9)/2 = 5, floor((2+3)/2) = 2, ...
PROG
(PARI) a(n)={my(v=digits(prime(n))); vecsum(v)\#v} \\ Andrew Howroyd, Jan 16 2020
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Y. Kelly Itakura (yitkr(AT)mta.ca), Aug 23 2002
EXTENSIONS
Offset corrected and terms a(21) and beyond from Andrew Howroyd, Jan 16 2020
STATUS
approved