OFFSET
1,2
COMMENTS
Since b(3) = 3/2, a(3) could also be taken to be 1.
EXAMPLE
The first few fractions b(n) are 1, 2, 3/2, 8/3, 15/8, 16/5, 35/16, 128/35, 315/128, 256/63, 693/256, 1024/231, 3003/1024, 2048/429, ...
MAPLE
A338720b := proc(n)
option remember ;
if n = 1 then
1;
else
n/procname(n-1) ;
end if;
end proc:
A338720 := proc(n)
round(A338720b(n)) ;
end proc:
seq(A338720(n), n=1..87) ; # R. J. Mathar, Dec 01 2020
MATHEMATICA
b[n_] := b[n] = If[n == 1, 1, n/b[n-1]];
a[n_] := Round[b[n]];
Table[a[n], {n, 1, 87}] (* Jean-François Alcover, Apr 23 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 29 2020, following a suggestion from Anchar Koops, Nov 24 2020
STATUS
approved