OFFSET
1,2
FORMULA
(See the Mathematica code.)
a(n) = n+floor(sqrt(2n/5)) if 2n > floor(sqrt(2n/5))(5*floor(sqrt(2n/5))+1) and a(n) = n+floor(sqrt(2n/5))-1 otherwise. - Chai Wah Wu, Oct 12 2024
MATHEMATICA
a=5/2; b=3/2;
F[n_]:=a*n^2+b*n;
R[n_]:=(n/a+((b-1)/(2a))^2)^(1/2);
G[n_]:=n-1+Ceiling[R[n]-(b-1)/(2a)];
Table[F[n], {n, 60}]
Table[G[n], {n, 100}]
PROG
(Python)
from math import isqrt
def A183298(n): return n+(m:=isqrt((k:=n<<1)//5))-(k<=m*(5*m+1)) # Chai Wah Wu, Oct 12 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 03 2011
STATUS
approved