OFFSET
1,1
COMMENTS
LINKS
EXAMPLE
a(42) = 3*42 + 2^1 = 128.
MAPLE
seq(3*n+2^padic:-ordp(n, 2), n=1..100); # Robert Israel, Apr 29 2018
MATHEMATICA
Table[3 n + 2^IntegerExponent[n, 2], {n, 60}] (* Vincenzo Librandi, Apr 29 2018 *)
PROG
(PARI) a(n) = 3*n + 2^valuation(n, 2)
(Magma) [3*n+2^Valuation(n, 2): n in [1..60]]; // Vincenzo Librandi, Apr 29 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Rémy Sigrist, Apr 28 2018
STATUS
approved