OFFSET
0,6
FORMULA
EXAMPLE
a(9) = T(9-6) = T(3) = 6. 6 < 9 < 10.
MAPLE
A112367 := proc(n)
t := A057944(n) ;
A000217(n-t) ;
end proc:
seq(A112367(n), n=0..80) ; # R. J. Mathar, Nov 05 2011
MATHEMATICA
trn[n_]:=Module[{c=Floor[(Sqrt[8n+1]-1)/2], x}, x=n-(c(c+1))/2; (x(x+1))/2]; Array[trn, 80, 0] (* Harvey P. Dale, Jul 19 2012 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Sep 12 2005
STATUS
approved