OFFSET
1,3
COMMENTS
PROG
(Perl) sub conv_x_base_n { my($x, $b) = @_; my ($r, $z) = (0, '');
do { $r = $x % $b; $x = ($x - $r)/$b; $z = "$r" . $z; } while(0 != $x);
return($z); }
for($i=0; $i <= 201; $i++) { if(("0" . conv_x_base_n($i, 5)) =~ /^(0|1|2)*((0|1)(3|4))?(0|1|2)*$/) { print $i, ", "; } }
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Antti Karttunen, Oct 24 1999
EXTENSIONS
a(1)=0 inserted by Georg Fischer, Jun 26 2021
STATUS
approved