Cullen and Woodall numbers: Difference between revisions

Added Quackery.
(moved python into alphabetic order between phix and raku)
(Added Quackery.)
Line 514:
1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 1048575 2228223 4718591 9961471
done...
</pre>
 
=={{header|Quackery}}==
 
<lang Quackery> [ dup bit * 1+ ] is cullen ( n --> n )
 
[ dup bit * 1 - ] is woodall ( n --> n )
 
say "First 20 Cullen numbers:" cr
20 times [ i^ 1+ cullen echo sp ] cr
cr
say "First 20 Woodall numbers:" cr
20 times [ i^ 1+ woodall echo sp ] cr</lang>
 
{{out}}
 
<pre>First 20 Cullen numbers:
3 9 25 65 161 385 897 2049 4609 10241 22529 49153 106497 229377 491521 1048577 2228225 4718593 9961473 20971521
 
First 20 Woodall numbers:
1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 1048575 2228223 4718591 9961471 20971519
</pre>
 
1,462

edits