A217397 Numbers starting with 4.
4, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442
Offset: 1
Links
- Jeremy Gardiner, Table of n, a(n) for n = 1..1111
- Index entries for 10-automatic sequences.
Crossrefs
Programs
-
Mathematica
Select[Range[1000], IntegerDigits[#][[1]] == 4 &] (* T. D. Noe, Oct 02 2012 *)
-
Python
def A217397(n): return n+(35*10**(len(str(9*n-8))-1))//9 # Chai Wah Wu, Dec 07 2024
Formula
a(n) = n + (35*10^floor(log_10(9*n-8))-8)/9. - Alan Michael Gómez Calderón, May 17 2023
Comments