A005836 by recursive

i=n=0
exec"f=1\nwhile i:f|=i%3;i/=3\nif f<2:print n\ni=n=n+1;"*1000

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top