A109326 Smallest positive number that requires n steps to be represented as a sum of palindromes using the greedy algorithm.
1, 10, 21, 1022, 101023, 1000101024
Offset: 1
Links
- M. F. Hasler, Sum of palindromes, OEIS wiki, Sept. 2015.
Programs
-
Python
# uses functions in A088601 def afind(limit): record = 0 for i in range(1, limit+1): steps = A088601(i) if steps > record: print(i, end=", "); record = steps afind(10**6) # Michael S. Branicky, Jul 12 2021
Formula
a(n) = Sum_{0 <= k <= n-3} 10^(2^k+1) + n - 82, for n > 2 (conjectured). - M. F. Hasler, Sep 08 2015
Extensions
Edited by N. J. A. Sloane, Aug 28 2015
Comments