login
A037283
Replace n with concatenation of its odd divisors.
5
1, 1, 13, 1, 15, 13, 17, 1, 139, 15, 111, 13, 113, 17, 13515, 1, 117, 139, 119, 15, 13721, 111, 123, 13, 1525, 113, 13927, 17, 129, 13515, 131, 1, 131133, 117, 15735, 139, 137, 119, 131339, 15, 141, 13721, 143, 111, 13591545, 123, 147, 13, 1749, 1525, 131751
OFFSET
1,3
LINKS
MATHEMATICA
dtn[ L_ ] := Fold[ 10#1+#2&, 0, L ] Array[ dtn[ Flatten[ Map[ IntegerDigits, Select[ Divisors[ # ], OddQ ] ] ] ]&, 50 ]
cod[n_]:=FromDigits[Flatten[IntegerDigits/@Select[Divisors[n], OddQ]]]; Array[cod, 60] (* _Harvey P. Dale_, Jan 24 2014 *)
PROG
(Haskell)
a037283 = read . concat . (map show) . a182469_row :: Integer -> Integer
-- _Reinhard Zumkeller_, May 01 2012
(Python)
from sympy import divisors
def a(n): return int("".join(str(d) for d in divisors(n) if d%2==1))
print([a(n) for n in range(1, 52)]) # _Michael S. Branicky_, Dec 31 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
_N. J. A. Sloane_
EXTENSIONS
More terms from _Erich Friedman_
STATUS
approved