cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A348330 Lexicographically earliest sequence of positive integers such that for any n > 0, the sum of the indices k < n such that a(k) = a(n) is strictly less than n.

This page as a plain text file.
%I A348330 #11 Oct 17 2021 15:26:04
%S A348330 1,1,2,1,2,3,3,1,2,4,4,5,5,3,6,1,6,2,7,7,8,4,8,9,9,5,10,3,10,11,11,1,
%T A348330 6,12,12,2,13,13,14,7,14,15,15,4,8,16,16,17,17,9,18,5,18,19,19,3,10,
%U A348330 20,20,21,21,11,22,1,22,6,23,23,24,12,24,2,25,25,26
%N A348330 Lexicographically earliest sequence of positive integers such that for any n > 0, the sum of the indices k < n such that a(k) = a(n) is strictly less than n.
%C A348330 Every integer appears infinitely many times.
%C A348330 See table A348356 where the integers are arranged according to the present sequence.
%F A348330 a(n) = 1 iff n is a power of 2 (A000079).
%o A348330 (PARI) s=vector(25); for (n=1, 75, for (k=1, oo, if (s[k]<n, print1 (k", "); s[k]+=n; break)))
%Y A348330 Cf. A000079, A348331, A348356, A348357.
%K A348330 nonn
%O A348330 1,3
%A A348330 _Rémy Sigrist_, Oct 13 2021