OFFSET
1,3
COMMENTS
Lim_{n->inf} a(n)/n = 1.5 (if a(1) and a(2) are set to other nonnegative numbers the limit is still 1.5). This limit is a step function of the added constant (3 -> 1.5 in this case) whose values at positive integers are 1, 1, 1.5, 2, 3, 3.5, 4, 5, 5.5, etc.
MAPLE
lincom:=proc(a, b, n) local i, j, s, m; s:={}; for i from 0 to n do for j from 0 to n do m:=a*i+b^j; if m<=n then s:={op(s), m} fi od; od; lprint(sort([op(s)])); end: lincom(3, 5, 100); # Zerinvary Lajos, Feb 24 2007
PROG
(Magma) [n le 2 select 1 else Floor(Sqrt(Self(n-2)*Self(n-1))) + 3: n in [1..100]]; // Vincenzo Librandi, Aug 17 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Gerald McGarvey, Sep 19 2004
STATUS
approved