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.

A383340 a(1)=1; thereafter if a(n-1) is a first occurrence, then a(n) is the number of first occurrences in the sequence thus far. Otherwise, a(n) is the number of terms that are the same number of distinct values away from their previous last occurrence as a(n-1).

This page as a plain text file.
%I A383340 #11 Apr 25 2025 21:29:37
%S A383340 1,1,1,2,1,1,3,2,1,2,2,4,2,3,1,2,3,4,3,4,5,1,1,5,6,1,5,6,7,1,4,2,1,8,
%T A383340 2,9,3,1,3,7,2,4,3,5,2,6,3,7,1,4,5,6,2,7,3,8,4,9,5,1,6,7,2,8,3,9,4,10,
%U A383340 1,11,2,5,1,8,12,3,1,9,2,10,13,3,4,2,5,3
%N A383340 a(1)=1; thereafter if a(n-1) is a first occurrence, then a(n) is the number of first occurrences in the sequence thus far. Otherwise, a(n) is the number of terms that are the same number of distinct values away from their previous last occurrence as a(n-1).
%H A383340 Neal Gersh Tolunsky, <a href="/A383340/b383340.txt">Table of n, a(n) for n = 1..10000</a>
%e A383340 a(17) = 3: a(16) = 2 is separated by 2 distinct values from its previous last occurrence. There are 3 terms in total separated by two distinct values from their previous last occurrence; they are at indices i = 8,9,16. So a(17) = 3.
%Y A383340 Cf. A383339.
%K A383340 nonn,look
%O A383340 1,4
%A A383340 _Neal Gersh Tolunsky_, Apr 23 2025