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.

Showing 1-10 of 11 results. Next

A037074 Numbers that are the product of a pair of twin primes.

Original entry on oeis.org

15, 35, 143, 323, 899, 1763, 3599, 5183, 10403, 11663, 19043, 22499, 32399, 36863, 39203, 51983, 57599, 72899, 79523, 97343, 121103, 176399, 186623, 213443, 272483, 324899, 359999, 381923, 412163, 435599, 656099, 675683, 685583, 736163
Offset: 1

Views

Author

Keywords

Comments

Each entry is the product of p and p+2 where both p and p+2 are prime, i.e., the product of the lesser and greater of a twin prime pair.
Except for the first term, all entries have digital root 8. - Lekraj Beedassy, Jun 11 2004
The above statement follows from p > 3 => (p,p+2) = (6k-1,6k+1) => p*(p+2) = 36k^2 - 1 == 8 (mod 9), and A010888 === A010878 (mod 9). - M. F. Hasler, Jan 11 2013
Albert A. Mullin states that m is a product of twin primes iff phi(m)*sigma(m) = (m-3)*(m+1), where phi(m) = A000010(m) and sigma(m) = A000203(m). Of course, for a product of distinct primes p*q we know sigma(p*q) = (p+1)*(q+1) and if p, q, are twin primes, say q = p + 2, then sigma(p*q) = (p+1)*(q+1) = (p+1)*(p+3). - Jonathan Vos Post, Feb 21 2006
Also the area of twin prime rectangles. A twin prime rectangle is a rectangle whose sides are components of twin prime pairs. E.g., the twin prime pair (3,5) produces a 3 X 5 unit rectangle which has area 15 square units. - Cino Hilliard, Jul 28 2006
Except for 15, a product of twin primes is of the form 36k^2 - 1 (cf. A136017, A002822). - Artur Jasinski, Dec 12 2007
A072965(a(n)) = 1; A072965(m) mod A037074(n) > 0 for all m. - Reinhard Zumkeller, Jan 29 2008
The number of terms less than 10^(2n) is A007508(n). - Robert G. Wilson v, Feb 08 2012
If m is the product of twin primes, then sigma(m) = m + 1 + 2*sqrt(m + 1), phi(m) = m + 1 - 2*sqrt(m + 1). pmin(m) = sqrt(m + 1) - 1, pmax(m) = sqrt(m + 1) + 1. - Wesley Ivan Hurt, Jan 06 2013
Semiprimes of the form 4*k^2 - 1. - Vincenzo Librandi, Apr 13 2013

Examples

			a(2)=35 because 5*7=35, that is (5,7) is the 2nd pair of twin primes.
		

References

  • Albert A. Mullin, "Bicomposites, twin primes and arithmetic progression", Abstract 04T-11-48, Abstracts of AMS, Vol. 25, No. 4, 2004, p. 795.

Crossrefs

Cf. A000010, A000203, A001359, A006512, A014574, A136017, A074480 (multiplicative closure), A209328.
Cf. A071700 (subsequence).
Cf. A075369.

Programs

  • Haskell
    a037074 = subtract 1 . a075369  -- Reinhard Zumkeller, Feb 10 2015
    -- Reinhard Zumkeller, Feb 10 2015, Aug 14 2011
  • Magma
    [p*(p+2): p in PrimesUpTo(1000) | IsPrime(p+2)];  // Bruno Berselli, Jul 08 2011
    
  • Magma
    IsSemiprime:=func; [s: n in [1..500] | IsSemiprime(s) where s is 4*n^2-1]; // Vincenzo Librandi, Apr 13 2013
    
  • Maple
    ZL:=[]: for p from 1 to 863 do if (isprime(p) and isprime(p+2) ) then ZL:=[op(ZL),(p*(p+2))]; fi; od; print(ZL); # Zerinvary Lajos, Mar 07 2007
    for i from 1 to 150 do if ithprime(i+1) = ithprime(i) + 2 then print({ithprime(i)*ithprime(i+1)}); fi; od; # Zerinvary Lajos, Mar 19 2007
  • Mathematica
    s = Select[ Prime@ Range@170, PrimeQ[ # + 2] &]; s(s + 2) (* Robert G. Wilson v, Feb 21 2006 *)
    (* For checking large numbers, the following code is better. For instance, we could use the fQ function to determine that 229031718473564142083 is in this sequence. *) fQ[n_] := Block[{fi = FactorInteger[n]}, Last@# & /@ fi == {1, 1} && Differences[ First@# & /@ fi] == {2}]; Select[ Range[750000], fQ] (* Robert G. Wilson v, Feb 08 2012 *)
    Times@@@Select[Partition[Prime[Range[500]],2,1],Last[#]-First[#]==2&] (* Harvey P. Dale, Oct 16 2012 *)
  • PARI
    g(n) = for(x=1,n,if(prime(x+1)-prime(x)==2,print1(prime(x)*prime(x+1)","))) \\ Cino Hilliard, Jul 28 2006
    

Formula

a(n) = A001359(n)*A006512(n). A000010(a(n))*A000203(a(n)) = (a(n)-3)*(a(n)+1). - Jonathan Vos Post, Feb 21 2006
a(n) = (A014574(n))^2 - 1. a(n+1) = (6*A002822(n))^2 - 1. - Lekraj Beedassy, Sep 02 2006
a(n) = A075369(n) - 1. - Reinhard Zumkeller, Feb 10 2015
Sum_{n>=1} 1/a(n) = A209328. - Amiram Eldar, Nov 20 2020
A000010(a(n)) == 0 (mod 8). - Darío Clavijo, Oct 26 2022

Extensions

More terms from Erich Friedman

A019670 Decimal expansion of Pi/3.

Original entry on oeis.org

1, 0, 4, 7, 1, 9, 7, 5, 5, 1, 1, 9, 6, 5, 9, 7, 7, 4, 6, 1, 5, 4, 2, 1, 4, 4, 6, 1, 0, 9, 3, 1, 6, 7, 6, 2, 8, 0, 6, 5, 7, 2, 3, 1, 3, 3, 1, 2, 5, 0, 3, 5, 2, 7, 3, 6, 5, 8, 3, 1, 4, 8, 6, 4, 1, 0, 2, 6, 0, 5, 4, 6, 8, 7, 6, 2, 0, 6, 9, 6, 6, 6, 2, 0, 9, 3, 4, 4, 9, 4, 1, 7, 8, 0, 7, 0, 5, 6, 8
Offset: 1

Views

Author

N. J. A. Sloane, Dec 11 1996

Keywords

Comments

With an offset of zero, also the decimal expansion of Pi/30 ~ 0.104719... which is the average arithmetic area of the 0-winding sectors enclosed by a closed Brownian planar path, of a given length t, according to Desbois, p. 1. - Jonathan Vos Post, Jan 23 2011
Polar angle (or apex angle) of the cone that subtends exactly one quarter of the full solid angle. See comments in A238238. - Stanislav Sykora, Jun 07 2014
60 degrees in radians. - M. F. Hasler, Jul 08 2016
Volume of a quarter sphere of radius 1. - Omar E. Pol, Aug 17 2019
Also smallest positive zero of Sum_{k>=1} cos(k*x)/k = -log(2*|sin(x/2)|). Proof of this identity: Sum_{k>=1} cos(k*x)/k = Re(Sum_{k>=1} exp(k*x*i)/k) = Re(-log(1-exp(x*i))) = -log(2*|sin(x/2)|), x != 2*m*Pi, where i = sqrt(-1). - Jianing Song, Nov 09 2019
The area of a circle circumscribing a unit-area regular dodecagon. - Amiram Eldar, Nov 05 2020

Examples

			Pi/3 = 1.04719755119659774615421446109316762806572313312503527365831486...
From _Peter Bala_, Nov 16 2016: (Start)
Case n = 1. Pi/3 = 18 * Sum_{k >= 0} (-1)^(k+1)( 1/((6*k - 5)*(6*k + 1)*(6*k + 7)) + 1/((6*k - 1)*(6*k + 5)*(6*k + 11)) ).
Using the methods of Borwein et al. we can find the following asymptotic expansion for the tails of this series: for N divisible by 6 there holds Sum_{k >= N/6} (-1)^(k+1)( 1/((6*k - 5)*(6*k + 1)*(6*k + 7)) + 1/((6*k - 1)*(6*k + 5)*(6*k + 11)) ) ~ 1/N^3 + 6/N^5 + 1671/N ^7 - 241604/N^9 + ..., where the sequence [1, 0, 6, 0, 1671, 0, -241604, 0, ...] is the sequence of coefficients in the expansion of ((1/18)*cosh(2*x)/cosh(3*x)) * sinh(3*x)^2 = x^2/2! + 6*x^4/4! + 1671*x^6/6! - 241604*x^8/8! + .... Cf. A024235, A278080 and A278195. (End)
		

References

  • Steven R. Finch, Mathematical Constants, Encyclopedia of Mathematics and its Applications, vol. 94, Cambridge University Press, 2003, Section 8.3, p. 489.

Crossrefs

Integral_{x=0..oo} 1/(1+x^m) dx: A013661 (m=2), A248897 (m=3), A093954 (m=4), A352324 (m=5), this sequence (m=6), A352125 (m=8), A094888 (m=10).

Programs

Formula

A third of A000796, a sixth of A019692, the square root of A100044.
Sum_{k >= 0} (-1)^k/(6k+1) + (-1)^k/(6k+5). - Charles R Greathouse IV, Sep 08 2011
Product_{k >= 1}(1-(6k)^(-2))^(-1). - Fred Daniel Kline, May 30 2013
From Peter Bala, Feb 05 2015: (Start)
Pi/3 = Sum {k >= 0} binomial(2*k,k)*1/(2*k + 1)*(1/16)^k = 2F1(1/2,1/2;3/2;1/4). Similar series expansions hold for Pi^2 (A002388), Pi^3 (A091925) and Pi/(2*sqrt(2)) (A093954.)
The integer sequences A(n) := 4^n*(2*n + 1)! and B(n) := A(n)*( Sum {k = 0..n} binomial(2*k,k)*1/(2*k + 1)*(1/16)^k ) both satisfy the second-order recurrence equation u(n) = (20*n^2 + 4*n + 1)*u(n-1) - 8*(n - 1)*(2*n - 1)^3*u(n-2). From this observation we can obtain the continued fraction expansion Pi/3 = 1 + 1/(24 - 8*3^3/(89 - 8*2*5^3/(193 - 8*3*7^3/(337 - ... - 8*(n - 1)*(2*n - 1)^3/((20*n^2 + 4*n + 1) - ... ))))). Cf. A002388 and A093954. (End)
Equals Sum_{k >= 1} arctan(sqrt(3)*L(2k)/L(4k)) where L=A000032. See also A005248 and A056854. - Michel Marcus, Mar 29 2016
Equals Product_{n >= 1} A016910(n) / A136017(n). - Fred Daniel Kline, Jun 09 2016
Equals Integral_{x=-oo..oo} sech(x)/3 dx. - Ilya Gutkovskiy, Jun 09 2016
From Peter Bala, Nov 16 2016: (Start)
Euler's series transformation applied to the series representation Pi/3 = Sum_{k >= 0} (-1)^k/(6*k + 1) + (-1)^k/(6*k + 5) given above by Greathouse produces the faster converging series Pi/3 = (1/2) * Sum_{n >= 0} 3^n*n!*( 1/(Product_{k = 0..n} (6*k + 1)) + 1/(Product_{k = 0..n} (6*k + 5)) ).
The series given above by Greathouse is the case n = 0 of the more general result Pi/3 = 9^n*(2*n)! * Sum_{k >= 0} (-1)^(k+n)*( 1/(Product_{j = -n..n} (6*k + 1 + 6*j)) + 1/(Product_{j = -n..n} (6*k + 5 + 6*j)) ) for n = 0,1,2,.... Cf. A003881. See the example section for notes on the case n = 1.(End)
Equals Product_{p>=5, p prime} p/sqrt(p^2-1). - Dimitris Valianatos, May 13 2017
Equals A019699/4 or A019693/2. - Omar E. Pol, Aug 17 2019
Equals Integral_{x >= 0} (sin(x)/x)^4 = 1/2 + Sum_{n >= 0} (sin(n)/n)^4, by the Abel-Plana formula. - Peter Bala, Nov 05 2019
Equals Integral_{x=0..oo} 1/(1 + x^6) dx. - Bernard Schott, Mar 12 2022
Pi/3 = -Sum_{n >= 1} i/(n*P(n, 1/sqrt(-3))*P(n-1, 1/sqrt(-3))), where i = sqrt(-1) and P(n, x) denotes the n-th Legendre polynomial. The first twenty terms of the series gives the approximation Pi/3 = 1.04719755(06...) correct to 8 decimal places. - Peter Bala, Mar 16 2024
Equals Integral_{x >= 0} (2*x^2 + 1)/((x^2 + 1)*(4*x^2 + 1)) dx. - Peter Bala, Feb 12 2025

A067611 Numbers of the form 6xy +- x +- y, where x, y are positive integers.

Original entry on oeis.org

4, 6, 8, 9, 11, 13, 14, 15, 16, 19, 20, 21, 22, 24, 26, 27, 28, 29, 31, 34, 35, 36, 37, 39, 41, 42, 43, 44, 46, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 92, 93, 94
Offset: 1

Views

Author

Jon Perry, Feb 01 2002

Keywords

Comments

Equivalently, numbers n such that either 6n-1 or 6n+1 is composite (or both are).
Numbers k such that 36*k^2 - 1 is not a product of twin primes. - Artur Jasinski, Dec 12 2007
Apart from initial zero, union of A046953 and A046954. - Reinhard Zumkeller, Jul 13 2014
From Bob Selcoe, Nov 18 2014: (Start)
Complementary sequence to A002822.
For all k >= 1, a(n) are the only positive numbers congruent to the following residue classes:
f == k (mod 6k+-1);
g == (5k-1) (mod 6k-1);
h == (5k+1) (mod 6k+1).
All numbers in classes g and h will be in this sequence; for class f, the quotient must be >= 1.
When determining which numbers are contained in this sequence, it is only necessary to evaluate f, g and h when the moduli are prime and the dividends are >= 2*k*(3*k - 1) (i.e., A033579(k)).
(End)
From Jason Kimberley, Oct 14 2015: (Start)
Numbers n such that A001222(A136017(n)) > 2.
The disjoint union of A060461, A121763, and A121765.
(End)
From Ralf Steiner, Aug 08 2018 (Start)
Conjecture 1: With u(k) = floor(k(k + 1)/4) one has A071538(a(u(k))*6) = a(u(k)) - u(k) + 1, for k >= 2 (u > 1).
Conjecture 2: In the interval [T(k-1)+1, T(k)], with T(k) = A000217(k), k >= 2, there exists at least one number that is not a member of the present sequence. (End)
Also: numbers of the form n*p +- round(p/6) with some positive integer n and prime p >= 5. [Proof available on demand.] - M. F. Hasler, Jun 25 2019

Examples

			4 = 6ab - a - b with a = 1, b = 1.
6 = 6ab + a - b or 6ab - a + b with a = 1, b = 1.
5 cannot be obtained by any values of a and b in 6ab - a - b, 6ab - a + b, 6ab + a - b or 6ab + a + b.
		

Crossrefs

Cf. A323674 (numbers 6xy +- x +- y including repetitions). - Sally Myers Moite, Jan 27 2019

Programs

  • GAP
    Filtered([1..120], k-> not IsPrime(6*k-1) or not IsPrime(6*k+1)) # G. C. Greubel, Feb 21 2019
  • Haskell
    a067611 n = a067611_list !! (n-1)
    a067611_list = map (`div` 6) $
       filter (\x -> a010051' (x-1) == 0 || a010051' (x+1) == 0) [6,12..]
    -- Reinhard Zumkeller, Jul 13 2014
    
  • Magma
    [n: n in [1..100] | not IsPrime(6*n-1) or not IsPrime(6*n+1)]; // Vincenzo Librandi, Nov 19 2014
    
  • Maple
    filter:= n -> not isprime(6*n+1) or not isprime(6*n-1):
    select(filter, [$1..1000]); # Robert Israel, Nov 18 2014
  • Mathematica
    Select[Range[100], !PrimeQ[6# - 1] || !PrimeQ[6# + 1] &]
    Select[Range[100],AnyTrue[6#+{1,-1},CompositeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 05 2019 *)
  • PARI
    for(n=1, 1e2, if(!isprime(6*n+1) || !isprime(6*n-1), print1(n", "))) \\ Altug Alkan, Nov 10 2015
    
  • Sage
    [n for n in (1..120) if not is_prime(6*n-1) or not is_prime(6*n+1)] # G. C. Greubel, Feb 21 2019
    

Extensions

Edited by Robert G. Wilson v, Feb 05 2002
Edited by Dean Hickerson, May 07 2002

A016910 a(n) = (6*n)^2.

Original entry on oeis.org

0, 36, 144, 324, 576, 900, 1296, 1764, 2304, 2916, 3600, 4356, 5184, 6084, 7056, 8100, 9216, 10404, 11664, 12996, 14400, 15876, 17424, 19044, 20736, 22500, 24336, 26244, 28224, 30276, 32400, 34596, 36864, 39204, 41616, 44100, 46656, 49284, 51984, 54756, 57600, 60516, 63504, 66564, 69696, 72900
Offset: 0

Views

Author

Keywords

Comments

Areas A of two classes of triangles with integer sides (a,b,c) where a = 9k, b=10k and c = 17k, or a = 3k, b = 25k and c = 26k for k=0,1,2,... These areas are given by Heron's formula A = sqrt(s(s-a)(s-b)(s-c)) = (6k)^2, with the semiperimeter s = (a+b+c)/2. This sequence is a subsequence of A188158. - Michel Lagneau, Oct 11 2013
Sequence found by reading the line from 0, in the direction 0, 36, ..., in the square spiral whose vertices are the generalized 20-gonal numbers A218864. - Omar E. Pol, May 13 2018.

Crossrefs

Cf. similar sequences of the type k*n^2: A000290 (k=1), A001105 (k=2), A033428 (k=3), A016742 (k=4), A033429 (k=5), A033581 (k=6), A033582 (k=7), A139098 (k=8), A016766 (k=9), A033583 (k=10), A033584 (k=11), A135453 (k=12), A152742 (k=13), A144555 (k=14), A064761 (k=15), A016802 (k=16), A244630 (k=17), A195321 (k=18), A244631 (k=19), A195322 (k=20), A064762 (k=21), A195323 (k=22), A244632 (k=23), A195824 (k=24), A016850 (k=25), A244633 (k=26), A244634 (k=27), A064763 (k=28), A244635 (k=29), A244636 (k=30).

Programs

Formula

From Ilya Gutkovskiy, Jun 09 2016: (Start)
O.g.f.: 36*x*(1 + x)/(1 - x)^3.
E.g.f.: 36*x*(1 + x)*exp(x).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
Sum_{n>=1} 1/a(n) = Pi^2/216 = A086726. (End)
Product_{n>=1} a(n)/A136017(n) = Pi/3. - Fred Daniel Kline, Jun 09 2016
a(n) = t(9*n) - 9*t(n), where t(i) = i*(i+k)/2 for any k. Special case (k=1): a(n) = A000217(9*n) - 9*A000217(n). - Bruno Berselli, Aug 31 2017
a(n) = 36*A000290(n) = 18*A001105(n) = 12*A033428 = 9*A016742(n) = 6*A033581(n) = 4*A016766(n) = 3*A135453(n) = 2*A195321(n). - Omar E. Pol, Jun 07 2018
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi^2/432. - Amiram Eldar, Jun 27 2020
From Amiram Eldar, Jan 25 2021: (Start)
Product_{n>=1} (1 + 1/a(n)) = sinh(Pi/6)/(Pi/6).
Product_{n>=1} (1 - 1/a(n)) = sin(Pi/6)/(Pi/6) = 3/Pi (A089491). (End)

A136016 a(n) = 9*n^2-1.

Original entry on oeis.org

8, 35, 80, 143, 224, 323, 440, 575, 728, 899, 1088, 1295, 1520, 1763, 2024, 2303, 2600, 2915, 3248, 3599, 3968, 4355, 4760, 5183, 5624, 6083, 6560, 7055, 7568, 8099, 8648, 9215, 9800, 10403, 11024, 11663, 12320, 12995, 13688, 14399, 15128, 15875, 16640
Offset: 1

Views

Author

Artur Jasinski, Dec 10 2007

Keywords

Crossrefs

Programs

Formula

a(n) = A005563(3*n-1). - Paul Curtz, Oct 28 2008
a(2*n) = A136017(n). - Paul Curtz, Sep 30 2008
a(n) = A016777(n)*A016789(n-1). - Reinhard Zumkeller, Feb 15 2009
G.f.: x*(-8-11*x+x^2) / ( x-1 )^3. - R. J. Mathar, Jul 01 2011
From Amiram Eldar, Jul 31 2020: (Start)
Sum_{n>=1} 1/a(n) = 1/2 - sqrt(3)*Pi/18.
Sum_{n>=1} (-1)^(n+1)/a(n) = sqrt(3)*Pi/9 - 1/2. (End)
From Amiram Eldar, Feb 04 2021: (Start)
Product_{n>=1} (1 + 1/a(n)) = 2*Pi/(3*sqrt(3)) (A248897).
Product_{n>=1} (1 - 1/a(n)) = sqrt(2/3)*sin(sqrt(2)*Pi/3). (End)
a(n) = a(-n) for all n in Z. Sum_{n in Z} 1/a(n) = -Pi/3^(3/2) = -A073010. - Michael Somos, May 21 2023
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Wesley Ivan Hurt, Jun 19 2025

A282284 Least common multiple of 3*n+1 and 3*n-1.

Original entry on oeis.org

1, 4, 35, 40, 143, 112, 323, 220, 575, 364, 899, 544, 1295, 760, 1763, 1012, 2303, 1300, 2915, 1624, 3599, 1984, 4355, 2380, 5183, 2812, 6083, 3280, 7055, 3784, 8099, 4324, 9215, 4900, 10403, 5512, 11663, 6160, 12995, 6844, 14399, 7564, 15875, 8320, 17423
Offset: 0

Views

Author

Colin Barker, Feb 11 2017

Keywords

Crossrefs

Programs

  • Mathematica
    Table[LCM@@{3n+1,3n-1},{n,0,50}] (* or *) LinearRecurrence[{0,3,0,-3,0,1},{1,4,35,40,143,112,323},60] (* Harvey P. Dale, Sep 05 2020 *)
  • PARI
    vector(60, n, n--; lcm(3*n+1, 3*n-1))
    
  • PARI
    Vec((1+4*x+32*x^2+28*x^3+41*x^4+4*x^5-2*x^6) / ((1-x)^3*(1+x)^3) + O(x^60))

Formula

a(n) = 9*n^2-1 for n>0 and even.
a(n) = (9*n^2-1)/2 for n odd.
a(n) = 3*a(n-2) - 3*a(n-4) + a(n-6) for n>6.
G.f.: (1+4*x+32*x^2+28*x^3+41*x^4+4*x^5-2*x^6) / ((1-x)^3*(1+x)^3).

A282285 Least common multiple of 5*n+1 and 5*n-1.

Original entry on oeis.org

1, 12, 99, 112, 399, 312, 899, 612, 1599, 1012, 2499, 1512, 3599, 2112, 4899, 2812, 6399, 3612, 8099, 4512, 9999, 5512, 12099, 6612, 14399, 7812, 16899, 9112, 19599, 10512, 22499, 12012, 25599, 13612, 28899, 15312, 32399, 17112, 36099, 19012, 39999, 21012
Offset: 0

Views

Author

Colin Barker, Feb 11 2017

Keywords

Crossrefs

Programs

  • PARI
    vector(60, n, n--; lcm(5*n+1, 5*n-1))
    
  • PARI
    Vec((1+12*x+96*x^2+76*x^3+105*x^4+12*x^5-2*x^6) / ((1-x)^3*(1+x)^3) + O(x^60))

Formula

a(n) = 25*n^2-1 for n>0 and even.
a(n) = (25*n^2-1)/2 for n odd.
a(n) = 3*a(n-2) - 3*a(n-4) + a(n-6) for n>6.
G.f.: (1+12*x+96*x^2+76*x^3+105*x^4+12*x^5-2*x^6) / ((1-x)^3*(1+x)^3).

A282286 Least common multiple of 7*n+1 and 7*n-1.

Original entry on oeis.org

1, 24, 195, 220, 783, 612, 1763, 1200, 3135, 1984, 4899, 2964, 7055, 4140, 9603, 5512, 12543, 7080, 15875, 8844, 19599, 10804, 23715, 12960, 28223, 15312, 33123, 17860, 38415, 20604, 44099, 23544, 50175, 26680, 56643, 30012, 63503, 33540, 70755, 37264, 78399
Offset: 0

Views

Author

Colin Barker, Feb 11 2017

Keywords

Crossrefs

Programs

  • PARI
    vector(60, n, n--; lcm(7*n+1, 7*n-1))
    
  • PARI
    Vec((1+24*x+192*x^2+148*x^3+201*x^4+24*x^5-2*x^6) / ((1-x)^3*(1+x)^3) + O(x^60))

Formula

a(n) = 49*n^2-1 for n>0 and even.
a(n) = (49*n^2-1)/2 for n odd.
a(n) = 3*a(n-2) - 3*a(n-4) + a(n-6) for n>6.
G.f.: (1+24*x+192*x^2+148*x^3+201*x^4+24*x^5-2*x^6) / ((1-x)^3*(1+x)^3).

A136050 Sum of digits of product of twin primes A037074.

Original entry on oeis.org

6, 8, 8, 8, 26, 17, 26, 17, 8, 17, 17, 26, 26, 26, 17, 26, 35, 35, 26, 26, 8, 35, 26, 17, 26, 35, 44, 26, 17, 35, 35, 35, 35, 26, 35, 26, 17, 26, 26, 26, 17, 35, 26, 35, 26, 35, 26, 17, 26, 17, 35, 35, 26, 26, 35, 35, 26, 35, 26, 35, 26, 26, 26, 35, 26, 44, 35, 26, 26, 35, 44, 35
Offset: 1

Views

Author

Artur Jasinski, Dec 12 2007

Keywords

Comments

Conjecture: except for the initial term, each term is one less than a multiple of 9. - Harvey P. Dale, Dec 02 2016

Examples

			The product of the first twin primes is 15=3*5, and sum of digits of 15 is 6.
		

Crossrefs

Programs

  • Mathematica
    a = {6}; Do[If[PrimeQ[6n - 1] && PrimeQ[6n + 1], c = IntegerDigits[36n^2 - 1]; b = Total[c]; AppendTo[a, b]], {n, 400}]; a
    Total[IntegerDigits[Times@@#]]&/@Select[Partition[Prime[Range[500]],2,1], #[[2]]- #[[1]]==2&] (* Harvey P. Dale, Dec 02 2016 *)
  • PARI
    lista(nn) = for (x=1, nn, if(prime(x+1)-prime(x)==2, print1(sumdigits(prime(x)*prime(x+1)), ", "))); \\ Michel Marcus, Nov 04 2013

Formula

a(n) = A007953(A037074(n)). - Michel Marcus, Nov 04 2013

Extensions

First term a(1)=6 inserted by Michel Marcus, Nov 04 2013

A158737 a(n) = 1296*n^2 - 36.

Original entry on oeis.org

1260, 5148, 11628, 20700, 32364, 46620, 63468, 82908, 104940, 129564, 156780, 186588, 218988, 253980, 291564, 331740, 374508, 419868, 467820, 518364, 571500, 627228, 685548, 746460, 809964, 876060, 944748, 1016028, 1089900, 1166364, 1245420, 1327068, 1411308, 1498140
Offset: 1

Views

Author

Vincenzo Librandi, Mar 25 2009

Keywords

Comments

The identity (72*n^2 - 1)^2 - (1296*n^2 - 36)*(2*n)^2 = 1 can be written as A158738(n)^2 - a(n)*A005843(n)^2 = 1.

Crossrefs

Programs

  • Magma
    I:=[1260, 5148, 11628]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..40]]; // Vincenzo Librandi, Feb 20 2012
    
  • Mathematica
    LinearRecurrence[{3, -3, 1}, {1260, 5148, 11628}, 50] (* Vincenzo Librandi, Feb 20 2012 *)
  • PARI
    for(n=1, 40, print1(1296*n^2 - 36", ")); \\ Vincenzo Librandi, Feb 20 2012

Formula

G.f.: 36*x*(-35 - 38*x + x^2)/(x-1)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
From Amiram Eldar, Mar 22 2023: (Start)
Sum_{n>=1} 1/a(n) = (1 - cot(Pi/6)*Pi/6)/72 = (1 - Pi/(2*sqrt(3)))/72.
Sum_{n>=1} (-1)^(n+1)/a(n) = (cosec(Pi/6)*Pi/6 - 1)/72. (End)
From Elmo R. Oliveira, Jan 16 2025: (Start)
E.g.f.: 36*(exp(x)*(36*x^2 + 36*x - 1) + 1).
a(n) = 36*A136017(n). (End)

Extensions

Comment rewritten and formula replaced by R. J. Mathar, Oct 22 2009
Showing 1-10 of 11 results. Next