OFFSET
1,2
COMMENTS
Arrange natural numbers 1,2,3,4,5,... as a triangle like A000027, then rotate each row of triangle one left. - Antti Karttunen, May 07 2002
For a group of n terms a^(n)(k)= k where n(n-1)/2 < k <= n(n+1)/2. E.g. for the three terms 5, 6 and 4, a(5)= 6, a(6) = 4, a(4) = 5; a(a(a(5))) = 5 = a^(3)(5). - Amarnath Murthy, May 31 2003
LINKS
FORMULA
a(n) = 1 + n + binomial(round(sqrt(2*n)),2) - binomial(round(sqrt(2*n+2)),2). - Brian Tenneson, Jan 23 2017
MAPLE
a := proc(n) floor(sqrt(2*n)); n+1; `if`(2*n=%%*(%%+1), %-%%, %) end: # Peter Luschny, Jan 25 2017
MATHEMATICA
FromCycles[Table[n(n-1)/2+Range[n], {n, 13}]]
CROSSREFS
KEYWORD
AUTHOR
Wouter Meeussen, Dec 15 2001
STATUS
approved