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 A135556 #36 Jan 26 2025 21:06:45 %S A135556 1,4,16,25,49,64,100,121,169,196,256,289,361,400,484,529,625,676,784, %T A135556 841,961,1024,1156,1225,1369,1444,1600,1681,1849,1936,2116,2209,2401, %U A135556 2500,2704,2809,3025,3136,3364,3481,3721,3844,4096,4225,4489,4624,4900 %N A135556 Squares of numbers not divisible by 3: a(n) = A001651(n)^2. %C A135556 From Fermat's Little Theorem all these numbers are congruent to 1 mod 3. %C A135556 From _Peter Bala_, Jan 26 2025: (Start) %C A135556 The sequence terms are the exponents of q in the expansion of q*Product_{n >= 1} (1 - q^(3*n))*(1 - q^(18*n))^2/( (1 - q^(6*n))*(1 - q^(9*n)) ) = q - q^4 - q^16 + q^25 + q^49 - q^64 - q^100 + + - - .... %C A135556 Also, the exponents of q in the expansion of q*Product_{n >= 1} (1 - q^(6*n))^5/(1 - q^(3*n))^2 = q + 2*q^4 - 4*q^16 - 5*q^25 + 7*q^49 + 8*q^64 -10*q^100 - 11*q^121 + + - - .... See Lemke Oliver, Theorem 1.2. (End) %H A135556 Colin Barker, <a href="/A135556/b135556.txt">Table of n, a(n) for n = 1..1000</a> %H A135556 Robert J. Lemke Oliver, <a href="https://doi.org/10.1016/j.aim.2013.03.019">Eta quotients and theta functions</a>, Advances in Mathematics, Vol. 241, Jul. 2013, pp. 1-17. %H A135556 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,2,-2,-1,1). %F A135556 G.f.: -x*(1+3*x+10*x^2+3*x^3+x^4) / ((1+x)^2*(x-1)^3). - _R. J. Mathar_, Feb 16 2011 %F A135556 From _Colin Barker_, Jan 26 2016: (Start) %F A135556 a(n) = (18*n^2-6*(-1)^n*n-18*n+3*(-1)^n+5)/8. %F A135556 a(n) = (9*n^2-12*n+4)/4 for n even. %F A135556 a(n) = (9*n^2-6*n+1)/4 for n odd. (End) %F A135556 E.g.f.: (1/8)*( (3 + 6*x)*exp(-x) - 8 + (5 + 18*x^2)*exp(x)). - _G. C. Greubel_, Oct 19 2016 %F A135556 Sum_{n>=1} 1/a(n) = 4*Pi^2/27 (A214549). - _Amiram Eldar_, Dec 19 2020 %t A135556 LinearRecurrence[{1,2,-2,-1,1}, {1,4,16,25,49}, 25] (* or *) Table[(18*n^2-6*(-1)^n*n-18*n+3*(-1)^n+5)/8, {n,1,25}] (* _G. C. Greubel_, Oct 19 2016 *) %t A135556 Flatten[Partition[Range[70],2,3,{1,1},{}]]^2 (* _Harvey P. Dale_, Jun 19 2018 *) %o A135556 (PARI) isok(n) = issquare(n) && (n % 3 == 1); \\ _Michel Marcus_, Nov 02 2013 %o A135556 (PARI) Vec(-x*(1+3*x+10*x^2+3*x^3+x^4) / ( (1+x)^2*(x-1)^3 ) + O(x^100)) \\ _Colin Barker_, Jan 26 2016 %Y A135556 Cf. A001651, A001082, A214549. %Y A135556 Partial sums of A298028. %K A135556 nonn,easy %O A135556 1,2 %A A135556 _Artur Jasinski_, Nov 25 2007