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.
%I A092092 #26 Jun 04 2020 09:25:03 %S A092092 1,1,0,3,2,0,5,3,0,7,4,0,9,5,0,11,6,0,13,7,0,15,8,0,17,9,0,19,10,0,21, %T A092092 11,0,23,12,0,25,13,0,27,14,0,29,15,0,31,16,0,33,17,0,35,18,0,37,19,0, %U A092092 39,20,0,41,21,0,43,22,0,45,23,0,47,24,0,49,25,0,51,26,0,53,27,0,55,28 %N A092092 Back and Forth Summant S(n, _3): a(n) = Sum_{i=0..floor(2n/3)} (n-3i). %C A092092 The terms for n>1 can also be defined by: a(n)=0 if n==0 (mod 3), and otherwise a(n) equals the inverse of 3 in Z/nZ*. - _José María Grau Ribas_, Jun 18 2013 %C A092092 The subsequence of nonzero terms is essentially the same as A026741. - _Giovanni Resta_, Jun 18 2013 %D A092092 F. Smarandache, Back and Forth Summants, Arizona State Univ., Special Collections, 1972. %H A092092 Robert Israel, <a href="/A092092/b092092.txt">Table of n, a(n) for n = 1..10000</a> %H A092092 J. Dezert, editor, <a href="http://www.mathematicsmagazine.com/corresp/J_Dezert/JDezert.htm">Smarandacheials</a>, Mathematics Magazine, Aurora, Canada %H A092092 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,2,0,0,-1). %F A092092 a(3n) = 0; a(3n+1) = 2n+1; a(3n+2) = n+1. %F A092092 G.f.: x*(1+x+x^3) / ( (x-1)^2*(1+x+x^2)^2 ). - _R. J. Mathar_, Jun 26 2013 %F A092092 a(n) = Sum_{k=1..n} k*( floor((3k-1)/n)-floor((3k-2)/n) ). - _Anthony Browne_, May 17 2016 %p A092092 f:= proc(n) local t; %p A092092 t:= n mod 3; %p A092092 if t = 0 then 0 elif t = 1 then 2/3*(n+1/2) else (n+1)/3 fi %p A092092 end proc: %p A092092 map(f, [$1..100]); # _Robert Israel_, May 19 2016 %t A092092 LinearRecurrence[{0, 0, 2, 0, 0, -1}, {1, 1, 0, 3, 2, 0}, 100] (* _Jean-François Alcover_, Jun 04 2020 *) %o A092092 (PARI) S(n, k=3) = local(s, x); s = n; x = n - k; while (x >= -n, s = s + x; x = x - k); s; %Y A092092 Cf. A092094, A092397. %Y A092092 Other values of k: A000004 (k = 1, 2), A027656 (k = 4), A092093 (k = 5). %Y A092092 Cf. A226782 - A226787 for inverses of 4,5,6,.. in Z/nZ*. %K A092092 nonn,easy %O A092092 1,4 %A A092092 Jahan Tuten (jahant(AT)indiainfo.com), Mar 29 2004 %E A092092 Edited and extended by _David Wasserman_, Dec 19 2005