A318466 a(n) = 2*n OR A000203(n), where OR is bitwise-or (A003986) and A000203 = sum of divisors.
3, 7, 6, 15, 14, 12, 14, 31, 31, 22, 30, 28, 30, 28, 30, 63, 50, 39, 54, 42, 42, 44, 62, 60, 63, 62, 62, 56, 62, 124, 62, 127, 114, 118, 118, 91, 110, 124, 126, 90, 122, 116, 126, 92, 94, 92, 126, 124, 123, 125, 110, 106, 126, 124, 110, 120, 114, 126, 126, 248, 126, 124, 126, 255, 214, 148, 198, 254, 234, 156, 206
Offset: 1
Links
Programs
-
Mathematica
Array[BitOr[2 #, DivisorSigma[1, #]] &, 71] (* Michael De Vlieger, Mar 30 2019 *)
-
PARI
A318466(n) = bitor(2*n,sigma(n));
-
Python
from sympy import divisor_sigma def A318466(n): return (n<<1)|int(divisor_sigma(n)) # Chai Wah Wu, Jul 10 2022