OFFSET
0,5
LINKS
EXAMPLE
A049345(85) = 2401, and the sum of digits at the odd positions (with the rightmost digit having index 0) is 0+2 = 2, thus a(85) = 2.
PROG
(PARI) A373607(n) = { my(p=2, i=0, s=0); while(n, if(i%2, s += (n%p)); n = n\p; p = nextprime(1+p); i = !i); (s); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 18 2024
STATUS
approved