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.

A048202 a(n)=T(n,2), array T given by A048201.

This page as a plain text file.
%I A048202 #21 Sep 02 2025 18:18:23
%S A048202 3,6,9,13,18,24,29,31,37,43,47,51,54,61,67,69,71,74,78,82,88,94,97,99,
%T A048202 103,110,117,122,126,129,135,147,157,161,164,168,171,176,181,183,192,
%U A048202 204,211,215,224,235,243,251,259,265,270,278
%N A048202 a(n)=T(n,2), array T given by A048201.
%H A048202 Chai Wah Wu, <a href="/A048202/b048202.txt">Table of n, a(n) for n = 2..10000</a>
%F A048202 a(n) = A002048(n) + A002048(n+1). [_Gerald Hillier_, Oct 04 2008]
%o A048202 (Python)
%o A048202 from itertools import count, accumulate, islice
%o A048202 from collections import deque
%o A048202 def A048202_gen(): # generator of terms
%o A048202     aset, alist = {1}, deque([1])
%o A048202     for k in count(2):
%o A048202         if k in aset:
%o A048202             aset.remove(k)
%o A048202         else:
%o A048202             yield k+alist[0]
%o A048202             aset |= set(k+d for d in accumulate(alist))
%o A048202             alist.appendleft(k)
%o A048202 A048202_list = (list(islice(A048202_gen(),52))) # _Chai Wah Wu_, Sep 02 2025
%Y A048202 Cf. A048201, A002048.
%K A048202 nonn,changed
%O A048202 2,1
%A A048202 _Clark Kimberling_