OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 3*A000265(n).
Sum_{k=1..n} a(k) ~ n^2. - Amiram Eldar, Aug 30 2024
MAPLE
MATHEMATICA
A166466[n_]:= If[n==0, 0, 3*n/2^IntegerExponent[n, 2]];
Table[A166466[n], {n, 100}] (* based on Michael Somos's code of A000265 *) (* G. C. Greubel, Jul 31 2024 *)
PROG
(Magma)
A166466:= func< n | 3*n/2^Valuation(n, 2) >;
[A166466(n): n in [1..120]]; // G. C. Greubel, Jul 31 2024
(SageMath)
def A166466(n): return 3*n//2^valuation(n, 2)
[A166466(n) for n in (1..121)] # G. C. Greubel, Jul 31 2024
(PARI) a(n)=3*n>>valuation(n, 2);
vector(100, n, a(n)) \\ Joerg Arndt, Aug 01 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 14 2009
EXTENSIONS
Comments turned into formulas by R. J. Mathar, Oct 21 2009
STATUS
approved