cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A373606 Sum of the even-indexed digits in the primorial base representation (A049345) of n.

Original entry on oeis.org

0, 1, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3, 2, 3, 3, 4, 3, 4, 3, 4, 4, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3, 2, 3, 3, 4, 3, 4, 3, 4, 4, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3, 2, 3, 3, 4, 3, 4, 3, 4, 4, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3
Offset: 0

Views

Author

Antti Karttunen, Jun 18 2024

Keywords

Examples

			A049345(85) = 2401, and the sum of digits at even positions (with the rightmost position having index 0) is 1+4 = 5, thus a(85) = 5.
		

Crossrefs

Programs

  • PARI
    A373606(n) = { my(p=2, i=1, s=0); while(n, if(i%2, s += (n%p)); n = n\p; p = nextprime(1+p); i = !i); (s); };

Formula

a(n) = A276150(n) - A373607(n).
a(n) = A373605(n) + A373607(n).