A324718 Odd numbers n for which bitand(2n,sigma(n)) = 2*bitand(n,sigma(n)-n), where bitand is bitwise-AND, A004198.
1, 5, 9, 17, 37, 41, 73, 137, 149, 153, 257, 261, 277, 293, 337, 405, 521, 529, 549, 577, 593, 641, 661, 673, 677, 1025, 1033, 1061, 1093, 1097, 1109, 1153, 1193, 1289, 1297, 1301, 1321, 1361, 2053, 2069, 2081, 2089, 2097, 2113, 2129, 2209, 2213, 2225, 2309, 2341, 2377, 2389, 2593, 2633, 2689, 2693, 2729, 2825, 4129, 4133, 4177, 4229
Offset: 1
Keywords
Links
Crossrefs
Programs
-
Mathematica
Select[Range[1, 10^4, 2], Block[{s = DivisorSigma[1, #]}, BitAnd[2*#, s] == 2* BitAnd[#, s-#]] &] (* Paolo Xausa, Mar 11 2024 *)
-
PARI
for(n=1,oo,if((n%2) && (bitand(2*n,sigma(n)) == 2*bitand(n,sigma(n)-n)),print1(n, ", ")));
Comments