The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A185021 a(n) = h(1)*h(2)*...*h(n), where h(i) = i/[g(i/2)*g(i/4)*g(i/8)*...] and g(x) = x if x is an integer and g(x) = 1 otherwise. 2
1, 1, 2, 6, 12, 60, 120, 840, 840, 7560, 15120, 166320, 110880, 1441440, 2882880, 43243200, 10810800, 183783600, 367567200, 6983776800, 2793510720, 58663725120, 117327450240, 2698531355520, 299836817280, 7495920432000, 14991840864000, 404779703328000, 115651343808000, 3353888970432000, 6707777940864000 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Although h(i) is not necessarily an integer, a(n) is.
LINKS
B. Farhi, A study of a curious arithmetic function, arXiv:1004.2269 [math.NT], April 13 2010.
Bakir Farhi, A Study of a Curious Arithmetic Function, Journal of Integer Sequences, Vol. 15 (2012), #12.3.1.
MAPLE
a:= proc(n) option remember; `if`(n<1, 1, h(n)*a(n-1)) end:
h:= i-> i/mul((t->`if`(t::integer, t, 1))((i/2^j)), j=1..ilog2(i)):
seq(a(n), n=0..30); # Alois P. Heinz, Oct 18 2018
MATHEMATICA
a[n_] := a[n] = If[n<1, 1, h[n] a[n-1]];
h[i_] := i/Product[If[IntegerQ[#], #, 1]&[i/2^j], {j, 1, Log[2, i]}];
Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Nov 13 2018, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A309811 A309233 A135060 * A191836 A072486 A096123
KEYWORD
nonn
AUTHOR
Bakir FARHI, Jan 22 2012
EXTENSIONS
Edited by N. J. A. Sloane, Apr 10 2012
a(0)=1 prepended by Alois P. Heinz, Oct 18 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 23:43 EDT 2024. Contains 372666 sequences. (Running on oeis4.)