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.

A131793 3 odds, 3 evens.

This page as a plain text file.
%I A131793 #23 Jan 01 2024 23:49:56
%S A131793 1,3,5,2,4,6,7,9,11,8,10,12,13,15,17,14,16,18,19,21,23,20,22,24,25,27,
%T A131793 29,26,28,30,31,33,35,32,34,36,37,39,41,38,40,42,43,45,47,44,46,48,49,
%U A131793 51,53,50,52,54,55,57,59,56,58,60,61,63,65,62,64,66,67,69,71,68,70,72
%N A131793 3 odds, 3 evens.
%H A131793 Robert Israel, <a href="/A131793/b131793.txt">Table of n, a(n) for n = 1..10000</a>
%H A131793 <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,0,0,1,-1).
%H A131793 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>.
%F A131793 a(n) = 2*(3*floor((n-1)/6)+((n-1) mod 3)+1)-(floor((n+2)/3) mod 2). - _Joshua Zucker_, Aug 29 2012
%F A131793 G.f.: x*(1 + 2*x + 2*x^2 - 3*x^3 + 2*x^4 + 2*x^5)/(1 - x - x^6 + x^7). - _Robert Israel_, May 10 2020
%F A131793 Sum_{n>=1} (-1)^(n+1)/a(n) = log(2)/3 + log(3)/2 - Pi/(6*sqrt(3)). - _Amiram Eldar_, Feb 09 2023
%p A131793 f:= gfun:-rectoproc({a(n) = a(n-1)+a(n-6)-a(n-7), a(1)=1,a(2)=3,a(3)=5,a(4)=2,a(5)=4,a(6)=6,a(7)=7},a(n),remember):
%p A131793 map(f, [$1..100]); # _Robert Israel_, May 10 2020
%t A131793 LinearRecurrence[{1, 0, 0, 0, 0, 1, -1}, {1, 3, 5, 2, 4, 6, 7}, 100] (* _Amiram Eldar_, Feb 09 2023 *)
%Y A131793 Cf. A271833.
%K A131793 nonn
%O A131793 1,2
%A A131793 _Paul Curtz_, Oct 23 2007