cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A106647 Replace even digits d of n with 1+d/2.

Original entry on oeis.org

1, 1, 2, 3, 3, 5, 4, 7, 5, 9, 11, 11, 12, 13, 13, 15, 14, 17, 15, 19, 21, 21, 22, 23, 23, 25, 24, 27, 25, 29, 31, 31, 32, 33, 33, 35, 34, 37, 35, 39, 31, 31, 32, 33, 33, 35, 34, 37, 35, 39, 51, 51, 52, 53, 53, 55, 54, 57, 55, 59, 41, 41, 42, 43, 43, 45, 44, 47, 45, 49, 71, 71, 72
Offset: 0

Views

Author

Zak Seidov, May 12 2005

Keywords

Comments

Differs from A029579 starting with 11th-term: a(11)=11, A029579(11)=6. Cf. A107128.

Crossrefs

Programs

  • Mathematica
    a[n_]:=FromDigits[Map[If[Mod[ #, 2]==0, 1+#/2, # ]&, IntegerDigits[n]]]; Table[a[n], {n, 0, 100}]
    Table[FromDigits[If[EvenQ[#],#/2+1,#]&/@IntegerDigits[n]],{n,0,80}] (* Harvey P. Dale, Feb 09 2019 *)