A324719 Odd numbers n for which bitor(2n,sigma(n)) = 2*bitor(n,sigma(n)-n), where bitor is bitwise-OR, A003986.
3, 7, 15, 27, 31, 51, 55, 63, 111, 119, 123, 125, 127, 219, 255, 411, 447, 485, 493, 495, 505, 511, 735, 765, 771, 831, 879, 927, 959, 965, 985, 1011, 1023, 1563, 1587, 1611, 1731, 1779, 1791, 1799, 1887, 1921, 1923, 1945, 1975, 1983, 1991, 2019, 2031, 2041, 2043, 2045, 2047, 3099, 3183, 3231, 3279, 3291, 3327, 3459, 3535, 3579
Offset: 1
Links
Programs
-
Mathematica
Select[Range[1, 10^4, 2], Block[{s = DivisorSigma[1, #]}, BitOr[2*#, s] == 2* BitOr[#, s-#]] &] (* Paolo Xausa, Mar 11 2024 *)
-
PARI
for(n=1,oo,if((n%2) && (2*(bitor(n, sigma(n)-n))==bitor(n+n, sigma(n))),print1(n,", ")));
Comments