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.

A358012 Minimal number of coins needed to pay n cents using coins of denominations 1 and 5 cents.

Original entry on oeis.org

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

Views

Author

Sandra Snan, Oct 24 2022

Keywords

Comments

Sequence consists of runs of five consecutive integers: 0..4, 1..5, 2..6, 3..7, etc.

Crossrefs

Cf. A076314 (1,10 cents), A053344 (1,5,10,25 cents).

Programs

Formula

Sum of quotient and remainder of n/5.
a(n) = A002266(n) + A010874(n).