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.

A030582 a(n)=(# 1's)-(# 2's) in first n terms of A030567.

This page as a plain text file.
%I A030582 #6 Sep 15 2019 16:40:12
%S A030582 1,0,0,0,0,0,1,2,3,2,3,3,4,4,5,5,6,6,5,6,5,4,3,3,2,2,1,1,0,0,0,1,1,0,
%T A030582 0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,
%U A030582 2,2,3,2,2,3,3,3,4,4,4,5,5,5,6,6,7,8,9,10,11
%N A030582 a(n)=(# 1's)-(# 2's) in first n terms of A030567.
%t A030582 Accumulate[Which[#==1,1,#==2,-1,True,0]&/@Flatten[Table[ Reverse[ IntegerDigits[ n,6]],{n,0,50}]]] (* _Harvey P. Dale_, Sep 15 2019 *)
%K A030582 nonn
%O A030582 1,8
%A A030582 _Clark Kimberling_