OFFSET
0,3
COMMENTS
As a(n^2) = n^4, A000583 is a subsequence. - Bernard Schott, Feb 01 2023
FORMULA
MATHEMATICA
f[n_]:=n*Floor[Sqrt[n]]*Ceiling[Sqrt[n]]; Table[f[n], {n, 0, 5!}]
PROG
(PARI) a(n) = n*sqrtint(n)*ceil(sqrt(n)); \\ Michel Marcus, Feb 14 2018
(Python)
from math import isqrt
def A174804(n): return n*(n if (k:=(m:=isqrt(n))**2)==n else k+m) # Chai Wah Wu, Jul 29 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 29 2010
STATUS
approved