A332144 Nonnegative numbers ordered by number of digits, and then by sum of digits, and then by value.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 20, 12, 21, 30, 13, 22, 31, 40, 14, 23, 32, 41, 50, 15, 24, 33, 42, 51, 60, 16, 25, 34, 43, 52, 61, 70, 17, 26, 35, 44, 53, 62, 71, 80, 18, 27, 36, 45, 54, 63, 72, 81, 90, 19, 28, 37, 46, 55, 64, 73, 82, 91, 29, 38, 47, 56
Offset: 0
Examples
Triangle starts: 0; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11, 20; 12, 21, 30; 13, 22, 31, 40; 14, 23, 32, 41, 50; 15, 24, 33, 42, 51, 60; 16, 25, 34, 43, 52, 61, 70; 17, 26, 35, 44, 53, 62, 71, 80; 18, 27, 36, 45, 54, 63, 72, 81, 90; 19, 28, 37, 46, 55, 64, 73, 82, 91; 29, 38, 47, 56, 65, 74, 83, 92; 39, 48, 57, 66, 75, 84, 93; 49, 58, 67, 76, 85, 94; 59, 68, 77, 86, 95; 69, 78, 87, 96; 79, 88, 97; 89, 98; 99; ...
Links
Programs
-
PARI
See Links section.
Formula
a(10^k - 1) = 10^k - 1 for any k >= 0.
a(10^k) = 10^k for any k >= 0.
a(10^k + 1) = 10^k + 1 for any k >= 0.
Comments