a(0)=1; for n >= 1, a(n) is the smallest positive integer not occurring earlier in the sequence such that Sum_{k=0..n} a(k) is a multiple of n.

A125147

a(0)=1; for n >= 1, a(n) is the smallest positive integer not occurring earlier in the sequence such that Sum_{k=0..n} a(k) is a multiple of n.

Terms

    a(0) =1a(1) =2a(2) =3a(3) =6a(4) =4a(5) =9a(6) =5a(7) =12a(8) =14a(9) =7a(10) =17a(11) =8a(12) =20a(13) =22a(14) =10a(15) =25a(16) =11a(17) =28a(18) =30a(19) =13a(20) =33a(21) =35a(22) =15a(23) =38a(24) =16a(25) =41a(26) =43a(27) =18a(28) =46a(29) =19

External references