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.

A273513 a(n) is the number of arithmetic triples n (three numbers in arithmetic progression) such that p and q contain no 2's in their ternary representation.

This page as a plain text file.
%I A273513 #42 Nov 22 2018 20:20:57
%S A273513 0,0,1,0,0,1,1,1,2,0,0,1,0,0,1,1,1,2,1,1,2,1,1,3,2,2,3,0,0,1,0,0,1,1,
%T A273513 1,2,0,0,1,0,0,1,1,1,2,1,1,2,1,1,3,2,2,3,1,1,2,1,1,3,2,2,3,1,1,2,1,1,
%U A273513 4,3,3,5,2,2,4,2,2,5,3,3,4,0,0,1,0,0,1
%N A273513 a(n) is the number of arithmetic triples n<p<q (three numbers in arithmetic progression) such that p and q contain no 2's in their ternary representation.
%C A273513 This is a recursive sequence that gives the number of times n is rejected from A005836, if n is the smallest member of an arithmetic triple whose final two terms are contained in A005836.
%C A273513 This is similar to both A002487, which has a similar recurrence relation and counts hyperbinary representations of n, and A000119, which counts representations of n as a sum of distinct Fibonacci numbers.
%C A273513 For n<k (choose the smallest k), a(n)=0, a(k)=0, a(n)=A262097(k), a(n+1)=A262097(k-1), a(n+2)=A262097(k-2)... a(k)=A262097(n).
%C A273513 Indices of maxima between a(n) and a(k) appear to converge to (3/4)(k-n) and (11/12)(k-n).
%H A273513 Max Barrentine, <a href="/A273513/b273513.txt">Table of n, a(n) for n = 0..19683</a> (terms 1 through 10000 from Robert Israel)
%H A273513 Robert Israel, <a href="/A273513/a273513.png">Plot of first 10^5 terms</a>
%F A273513 a(0)=0, a(n)=a(3n)=a(3n+1);
%F A273513 if a(n+1)=0, a(3n+2)=1+a(n), otherwise a(3n+2)=a(n)+a(n+1).
%p A273513 f:= proc(n) option remember; local m;
%p A273513 m:= floor(n/3);
%p A273513 if n mod 3 <> 2 then procname(m)
%p A273513 elif procname(m+1)=0 then 1 + procname(m)
%p A273513 else procname(m) + procname(m+1)
%p A273513 fi
%p A273513 end proc:
%p A273513 f(0):= 0:
%p A273513 map(f, [$0..100]); # _Robert Israel_, Jun 16 2016
%Y A273513 Cf. A000119, A002487, A005836, A262097, A273514.
%K A273513 nonn,base,look
%O A273513 0,9
%A A273513 _Max Barrentine_, May 23 2016