OFFSET
0,3
COMMENTS
Although h(i) is not necessarily an integer, a(n) is.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1662
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
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