OFFSET
1,2
COMMENTS
Corresponding Fibbinary numbers are 1, 2, 16, 336, 650, 2304, 10272, ...
Next term > 2^32. - Joerg Arndt, Sep 05 2016
EXAMPLE
84 = Fibonacci(10) + Fibonacci(8) + Fibonacci(6) and 84 divides A003714(84) = 2^8 + 2^6 + 2^4 = 336.
PROG
(C++)
#include <iostream>
typedef unsigned long ulong;
ulong next_fibrep(ulong x)
{
ulong y = x | (x>>1);
ulong z = y + 1;
z = z & -z;
x ^= z;
x &= ~(z-1);
return x;
}
int main()
{
ulong n = 0;
ulong f = 0;
do
{
n += 1;
f = next_fibrep(f);
if ( f % n == 0 )
{
std::cout << n << ", ";
std::cout << std::flush;
}
}
while ( n <= (1UL << 32) );
std::cout << std::endl;
} // Joerg Arndt, Sep 05 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Sep 05 2016
EXTENSIONS
Terms 2568 and beyond from Joerg Arndt, Sep 05 2016
STATUS
approved