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.

A004092 Sum of digits of even numbers.

Original entry on oeis.org

0, 2, 4, 6, 8, 1, 3, 5, 7, 9, 2, 4, 6, 8, 10, 3, 5, 7, 9, 11, 4, 6, 8, 10, 12, 5, 7, 9, 11, 13, 6, 8, 10, 12, 14, 7, 9, 11, 13, 15, 8, 10, 12, 14, 16, 9, 11, 13, 15, 17, 1, 3, 5
Offset: 0

Views

Author

N. J. A. Sloane, Dec 11 1996

Keywords

Comments

a(n) >= A007953(n) / 5 with equality iff n is in A169964 (see Diophante link). - Bernard Schott, Apr 29 2023

Crossrefs

Programs

Formula

a(n) = 2n - 9*Sum_{k=1..1+floor(log_10(2n))} floor( n/(5*10^(k-1)) ). - Anthony Browne, Jun 18 2016
a(n) = A007953(2n). - Alois P. Heinz, Apr 11 2018