The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS"). Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A227179 After initial 0, integers from 0 to n(n-1) followed by integers from 0 to n(n+1) and so on. 5
 0, 0, 0, 1, 2, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,5 LINKS Antti Karttunen, Table of n, a(n) for n = 0..9951 FORMULA a(n) = n - (1 + A006527(A227177(n)-1)). MATHEMATICA Flatten[(Range[(#-2) (#-1)+1]-1&)[Range[7]]] (* Peter J. C. Moses, Jul 11 2013 *) PROG (Scheme): (define (A227179 n) (- n (+ 1 (A006527 (- (A227177 n) 1))))) CROSSREFS Cf. A002378, A006527, A227177, A227181, A227182. Sequence in context: A238794 A135317 A332663 * A115218 A023858 A011118 Adjacent sequences:  A227176 A227177 A227178 * A227180 A227181 A227182 KEYWORD nonn AUTHOR Antti Karttunen, Jul 03 2013 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 2 23:09 EST 2020. Contains 338898 sequences. (Running on oeis4.)