[seqfan] Re: For bit fiddlers only
Marc LeBrun
mlb at well.com
Wed Jan 1 00:38:34 CET 2014
Is this not essentially HAKMEM Item 175, applied to an initial starting
value x=3?
If so I guess it should be endowed with the formula
a(0)=3, a(n+1)=A057168(a(n)), n>0
and appropriate references.
The OEIS contains analogs for a number of other x=2^n-1, but the %N's aren't
consistent (eg A038461).
As well, A066884 is a nice square table with all positive integers; A081118
is a related triangle.
A grateful "Happy New Year" to all the hardworking cross-referencers and
editors!
>="Peter Luschny" <peter.luschny at gmail.com>
> Assuming C operators.
>
> x = 3
> [start]
> print x
> s = x & -x
> r = x + s
> o = x ^ r
> o = (o >> 2) / s
> x = r | o
> goto [start]
>
> Peter
>
> _______________________________________________
>
> Seqfan Mailing list - http://list.seqfan.eu/
More information about the SeqFan
mailing list