# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a340835 Showing 1-1 of 1 %I A340835 #36 Mar 14 2021 14:26:15 %S A340835 0,1,2,3,4,5,6,7,8,9,11,11,12,12,12,12,12,12,12,12,12,12,13,13,13,13, %T A340835 13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15, %U A340835 15,15,15,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17 %N A340835 a(n) is the least k such that the digit reversal of k is greater than or equal to n. %C A340835 A004086 gives the digit reversal of a number. %C A340835 All positive terms belong to A070698. %C A340835 This sequence is nondecreasing. %H A340835 Rémy Sigrist, Table of n, a(n) for n = 0..10000 %F A340835 a(n) <= n + 1 with equality iff n = 10^k for some k > 0. %e A340835 For n = 1000: %e A340835 - A004086(k) < 1000 for any k <= 1000, %e A340835 - A004086(1001) = 1001 >= 1000, %e A340835 - so a(1000) = 1001. %o A340835 (PARI) { base = 10; k = 0; r = 0; for (n=0, 67, while (r