A050625 Divisible by 3^k (where k is digit length of a(n)).
3, 6, 9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, 108, 135, 162, 189, 216, 243, 270, 297, 324, 351, 378, 405, 432, 459, 486, 513, 540, 567, 594, 621, 648, 675, 702, 729, 756, 783, 810, 837, 864, 891, 918, 945, 972, 999, 1053, 1134, 1215, 1296, 1377, 1458
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Flatten[Table[3^n*Range[Ceiling[10^(n-1)/3^n],Floor[(10^n-1)/3^n]],{n,4}]] (* Harvey P. Dale, Feb 26 2015 *) Select[Range[1500],Mod[#,3^IntegerLength[#]]==0&] (* Harvey P. Dale, Apr 04 2020 *)