login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073189 Integers 0..k three times, then 0..k+1 three times, etc. 17

%I #18 Mar 12 2021 22:24:42

%S 0,0,0,0,1,0,1,0,1,0,1,2,0,1,2,0,1,2,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,

%T 4,0,1,2,3,4,0,1,2,3,4,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,

%U 5,6,0,1,2,3,4,5,6,0,1,2,3,4,5,6,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4

%N Integers 0..k three times, then 0..k+1 three times, etc.

%H G. C. Greubel, <a href="/A073189/b073189.txt">Rows n=0..50 of triangle, flattened</a>

%H Michael Somos, <a href="/A073189/a073189.txt">Sequences used for indexing triangular or square arrays</a>

%e 0;

%e 0;

%e 0;

%e 0, 1;

%e 0, 1;

%e 0, 1;

%e 0, 1, 2;

%e 0, 1, 2;

%e 0, 1, 2;

%e 0, 1, 2, 3;

%e 0, 1, 2, 3; ...

%t Table[Range[0, k], {k, 0, 7}, {3}] // Flatten (* _Jean-François Alcover_, Apr 18 2013 *)

%o (PARI) a(n)=local(m); m=floor(sqrt(6*n+6)-3/2)\3+1; (n-3*binomial(m,2))%m

%K nonn,tabf

%O 0,12

%A _Michael Somos_, Jul 19 2002

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)