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.

Previous Showing 21-30 of 103 results. Next

A132469 a(n) = (2^(5*n) - 1)/31.

Original entry on oeis.org

0, 1, 33, 1057, 33825, 1082401, 34636833, 1108378657, 35468117025, 1134979744801, 36319351833633, 1162219258676257, 37191016277640225, 1190112520884487201, 38083600668303590433, 1218675221385714893857, 38997607084342876603425, 1247923426698972051309601
Offset: 0

Views

Author

A.K. Devaraj, Aug 22 2007

Keywords

Comments

Partial sums of powers of 32 (A009976), a.k.a. q-numbers for q=32. - M. F. Hasler, Nov 05 2012

References

  • A. K. Devaraj, "Minimum Universal Exponent Generalisation of Fermat's Theorem", in ISSN #1550-3747, Proceedings of Hawaii Intl Conference on Statistics, Mathematics & Related Fields, 2004.

Crossrefs

Programs

Formula

a(n) = (32^n - 1)/31 = floor(32^n/31) = Sum_{k=0..n} 32^k. - M. F. Hasler, Nov 05 2012
G.f.: x/((1 - x)*(1 - 32*x)). - Bruno Berselli, Nov 06 2012
E.g.f.: exp(x)*(exp(31*x) - 1)/31. - Stefano Spezia, Mar 23 2023

Extensions

Edited and extended by Robert G. Wilson v, Aug 22 2007
Edited and extended to offset 0 by M. F. Hasler, Nov 05 2012

A218721 a(n) = (18^n-1)/17.

Original entry on oeis.org

0, 1, 19, 343, 6175, 111151, 2000719, 36012943, 648232975, 11668193551, 210027483919, 3780494710543, 68048904789775, 1224880286215951, 22047845151887119, 396861212733968143, 7143501829211426575, 128583032925805678351
Offset: 0

Views

Author

M. F. Hasler, Nov 04 2012

Keywords

Comments

Partial sums of powers of 18 (A001027), q-integers for q=18: diagonal k=1 in triangle A022182.
Partial sums are in A014901. Also, the sequence is related to A014935 by A014935(n) = n*a(n) - Sum_{i=0..n-1} a(i), for n>0. - Bruno Berselli, Nov 06 2012
From Bernard Schott, May 06 2017: (Start)
Except for 0, 1 and 19, all terms are Brazilian repunits numbers in base 18, and so belong to A125134. From n = 3 to n = 8286, all terms are composite. See link "Generalized repunit primes".
As explained in the extensions of A128164, a(25667) = (18^25667 - 1)/17 would be (is) the smallest prime in base 18. (End)

Examples

			a(3) = (18^3 - 1)/17 = 343 = 7 * 49; a(6) = (18^6 - 1)/17 = 2000719 = 931 * 2149. - _Bernard Schott_, May 01 2017
		

Crossrefs

Programs

Formula

a(n) = floor(18^n/17).
G.f.: x/((1-x)*(1-18*x)). - Bruno Berselli, Nov 06 2012
a(n) = 19*a(n-1) - 18*a(n-2). - Vincenzo Librandi, Nov 07 2012
E.g.f.: exp(x)*(exp(17*x) - 1)/17. - Stefano Spezia, Mar 11 2023

A218753 a(n) = (49^n - 1)/48.

Original entry on oeis.org

0, 1, 50, 2451, 120100, 5884901, 288360150, 14129647351, 692352720200, 33925283289801, 1662338881200250, 81454605178812251, 3991275653761800300, 195572507034328214701, 9583052844682082520350, 469569589389422043497151, 23008909880081680131360400
Offset: 0

Views

Author

M. F. Hasler, Nov 04 2012

Keywords

Comments

Partial sums of powers of 49 (A087752).

Crossrefs

Programs

Formula

G.f.: x/((1-x)*(1-49*x)). - Vincenzo Librandi, Nov 08 2012
a(n) = 50*a(n-1) - 49*a(n-2) with a(0)=0, a(1)=1. - Vincenzo Librandi, Nov 08 2012
a(n) = 49*a(n-1) + 1 with a(0)=0. - Vincenzo Librandi, Nov 08 2012
a(n) = floor(49^n/48). - Vincenzo Librandi, Nov 08 2012
E.g.f.: exp(25*x)*sinh(24*x)/24. - Elmo R. Oliveira, Aug 27 2024

A160870 Array read by antidiagonals: T(n,k) is the number of sublattices of index n in generic k-dimensional lattice (n >= 1, k >= 1).

Original entry on oeis.org

1, 1, 1, 1, 3, 1, 1, 4, 7, 1, 1, 7, 13, 15, 1, 1, 6, 35, 40, 31, 1, 1, 12, 31, 155, 121, 63, 1, 1, 8, 91, 156, 651, 364, 127, 1, 1, 15, 57, 600, 781, 2667, 1093, 255, 1, 1, 13, 155, 400, 3751, 3906, 10795, 3280, 511, 1, 1, 18, 130, 1395, 2801, 22932, 19531, 43435, 9841, 1023, 1
Offset: 1

Views

Author

N. J. A. Sloane, Nov 19 2009

Keywords

Examples

			Array begins:
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,...
  1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,...
  1,4,13,40,121,364,1093,3280,9841,29524,88573,265720,797161,2391484,...
  1,7,35,155,651,2667,10795,43435,174251,698027,2794155,11180715,...
  1,6,31,156,781,3906,19531,97656,488281,2441406,12207031,61035156,...
  ...
		

References

  • Günter Scheja, Uwe Storch, Lehrbuch der Algebra, Teil 2. BG Teubner, Stuttgart, 1988. [§63, Aufg. 13]

Crossrefs

Programs

  • Mathematica
    T[, 1] = 1; T[1, ] = 1; T[n_, k_] := T[n, k] = DivisorSum[n, (n/#)^(k-1) *T[#, k-1]&]; Table[T[n-k+1, k], {n, 1, 11}, {k, 1, n}] // Flatten (* Jean-François Alcover, Dec 04 2015 *)
  • PARI
    T(n,k)={ if ( (n==1) || (k==1), 1, sumdiv(n,d, d*T(d, k-1)) ) }

Formula

T(n,1) = 1; T(1,k) = 1; T(n, k) = Sum_{d|n} d*T(d, k-1).
From Álvar Ibeas, Oct 31 2015: (Start)
T(n,k) = Sum_{d|n} (n/d)^(k-1) * T(d, k-1).
T(Product(p^e), k) = Product(Gaussian_poly[e+k-1, e]_p). (End)

A218736 a(n) = (33^n - 1)/32.

Original entry on oeis.org

0, 1, 34, 1123, 37060, 1222981, 40358374, 1331826343, 43950269320, 1450358887561, 47861843289514, 1579440828553963, 52121547342280780, 1720011062295265741, 56760365055743769454, 1873092046839544391983, 61812037545704964935440, 2039797239008263842869521
Offset: 0

Views

Author

M. F. Hasler, Nov 04 2012

Keywords

Comments

Partial sums of powers of 33 (A009977).

Crossrefs

Programs

Formula

From Vincenzo Librandi, Nov 07 2012: (Start)
G.f.: x/((1 - x)*(1 - 33*x)).
a(n) = 34*a(n-1) - 33*a(n-2).
a(n) = floor(33^n/32). (End)
E.g.f.: exp(x)*(exp(32*x) - 1)/32. - Stefano Spezia, Mar 24 2023

A113405 Expansion of x^3/(1 - 2*x + x^3 - 2*x^4) = x^3/( (1-2*x)*(1+x)*(1-x+x^2) ).

Original entry on oeis.org

0, 0, 0, 1, 2, 4, 7, 14, 28, 57, 114, 228, 455, 910, 1820, 3641, 7282, 14564, 29127, 58254, 116508, 233017, 466034, 932068, 1864135, 3728270, 7456540, 14913081, 29826162, 59652324, 119304647, 238609294, 477218588, 954437177, 1908874354, 3817748708
Offset: 0

Views

Author

Paul Barry, Oct 28 2005

Keywords

Comments

A transform of the Jacobsthal numbers. A059633 is the equivalent transform of the Fibonacci numbers.
Paul Curtz, Aug 05 2007, observes that the inverse binomial transform of 0,0,0,1,2,4,7,14,28,57,114,228,455,910,1820,... gives the same sequence up to signs. That is, the extended sequence is an eigensequence for the inverse binomial transform (an autosequence).
The round() function enables the closed (non-recurrence) formula to take a very simple form: see Formula section. This can be generalized without loss of simplicity to a(n) = round(b^n/c), where b and c are very small, incommensurate integers (c may also be an integer fraction). Particular choices of small integers for b and c produce a number of well-known sequences which are usually defined by a recurrence - see Cross Reference. - Ross Drewe, Sep 03 2009

Crossrefs

From Ross Drewe, Sep 03 2009: (Start)
Other sequences a(n) = round(b^n / c), where b and c are very small integers:
A001045 b = 2; c = 3
A007910 b = 2; c = 5
A016029 b = 2; c = 5/3
A077947 b = 2; c = 7
abs(A078043) b = 2; c = 7/3
A007051 b = 3; c = 2
A015518 b = 3; c = 4
A034478 b = 5; c = 2
A003463 b = 5; c = 4
A015531 b = 5; c = 6
(End)

Programs

  • Magma
    [Round(2^n/9): n in [0..40]]; // Vincenzo Librandi, Aug 11 2011
    
  • Maple
    A010892 := proc(n) op((n mod 6)+1,[1,1,0,-1,-1,0]) ; end proc:
    A113405 := proc(n) (2^n-(-1)^n)/9 -A010892(n-1)/3; end proc: # R. J. Mathar, Dec 17 2010
  • Mathematica
    CoefficientList[Series[x^3/(1-2x+x^3-2x^4),{x,0,40}],x] (* or *) LinearRecurrence[{2,0,-1,2},{0,0,0,1},40] (* Harvey P. Dale, Apr 30 2011 *)
  • PARI
    a(n)=2^n\/9 \\ Charles R Greathouse IV, Jun 05 2011
    
  • Python
    def A113405(n): return ((1<Chai Wah Wu, Apr 17 2025

Formula

a(n) = 2a(n-1) - a(n-3) + 2a(n-4).
a(n) = Sum_{k=0..floor(n/2)} binomial(n-k,k)*A001045(k).
a(n) = Sum_{k=0..n} binomial((n+k)/2,k)*A001045((n-k)/2)*(1+(-1)^(n-k))/2.
a(3n) = A015565(n), a(3n+1) = 2*A015565(n), a(3n+2) = 4*A015565(n). - Paul Curtz, Nov 30 2007
From Paul Curtz, Dec 16 2007: (Start)
a(n+1) - 2a(n) = A131531(n).
a(n) + a(n+3) = 2^n. (End)
a(n) = round(2^n/9). - Ross Drewe, Sep 03 2009
9*a(n) = 2^n + (-1)^n - 3*A010892(n). - R. J. Mathar, Mar 24 2018

Extensions

Edited by N. J. A. Sloane, Dec 13 2007

A157155 Triangle T(n, k, m) = (m*(n-k) + 1)*T(n-1, k-1, m) + (m*k + 1)*T(n-1, k, m) - m*k*(n-k)*T(n-2, k-1, m) with T(n, 0, m) = T(n, n, m) = 1 and m = 4, read by rows.

Original entry on oeis.org

1, 1, 1, 1, 6, 1, 1, 31, 31, 1, 1, 156, 462, 156, 1, 1, 781, 5442, 5442, 781, 1, 1, 3906, 57263, 124860, 57263, 3906, 1, 1, 19531, 566153, 2335435, 2335435, 566153, 19531, 1, 1, 97656, 5396164, 38814088, 71413750, 38814088, 5396164, 97656, 1
Offset: 0

Views

Author

Roger L. Bagula, Feb 24 2009

Keywords

Examples

			Triangle begins as:
  1;
  1,     1;
  1,     6,       1;
  1,    31,      31,        1;
  1,   156,     462,      156,        1;
  1,   781,    5442,     5442,      781,        1;
  1,  3906,   57263,   124860,    57263,     3906,       1;
  1, 19531,  566153,  2335435,  2335435,   566153,   19531,     1;
  1, 97656, 5396164, 38814088, 71413750, 38814088, 5396164, 97656, 1;
		

Crossrefs

Cf. A007318 (m=0), A157152 (m=1), A157153 (m=2), A157154 (m=3), this sequence (m=4), A157156 (m=5).
Cf. A003463.

Programs

  • Mathematica
    T[n_, k_, m_]:= T[n, k, m]= If[k==0 || k==n, 1, (m*(n-k)+1)*T[n-1,k-1,m] + (m*k+1)*T[n-1,k,m] - m*k*(n-k)*T[n-2,k-1,m]];
    Table[T[n,k,4], {n,0,10}, {k,0,n}]//Flatten (* modified by G. C. Greubel, Jan 10 2022 *)
  • Sage
    @CachedFunction
    def T(n,k,m):  # A157155
        if (k==0 or k==n): return 1
        else: return (m*(n-k) +1)*T(n-1,k-1,m) + (m*k+1)*T(n-1,k,m) - m*k*(n-k)*T(n-2,k-1,m)
    flatten([[T(n,k,4) for k in (0..n)] for n in (0..20)]) # G. C. Greubel, Jan 10 2022

Formula

T(n, k, m) = (m*(n-k) + 1)*T(n-1, k-1, m) + (m*k + 1)*T(n-1, k, m) - m*k*(n-k)*T(n-2, k-1, m) with T(n, 0, m) = T(n, n, m) = 1 and m = 4.
T(n, n-k, m) = T(n, k, m).
T(n, 1, 4) = A003463(n). - G. C. Greubel, Jan 10 2022

Extensions

Edited by G. C. Greubel, Jan 10 2022

A078971 Numbers n such that C(4n,n)/(3n+1) (A002293) is not divisible by 4.

Original entry on oeis.org

0, 1, 3, 5, 11, 13, 21, 43, 45, 53, 85, 171, 173, 181, 213, 341, 683, 685, 693, 725, 853, 1365, 2731, 2733, 2741, 2773, 2901, 3413, 5461, 10923, 10925, 10933, 10965, 11093, 11605, 13653, 21845, 43691, 43693, 43701, 43733, 43861, 44373, 46421, 54613
Offset: 1

Views

Author

Benoit Cloitre, Jan 14 2003

Keywords

Comments

Stanica observes that the sequence in binary forms a pattern where 1 bits are inserted into the word 1010101...:
1 11
101 1011 1101
10101 101011 101101 110101
1010101 10101011 10101101 10110101 11010101...

Crossrefs

Cf. A000225 (C(2n, n)/(n+1) is not divisible by 2), A003462 (C(3n, n)/(2n+1) is not divisible by 3), A003463 (C(5n, n)/(4n+1) is not divisible by 5).

Programs

  • Magma
    [n: n in [0..2*10^4] | not IsZero(Binomial(4*n,n) div (3*n+1) mod 4)]; // Vincenzo Librandi, Apr 16 2015
    
  • Mathematica
    Select[ Range[0, 65000], Mod[ Binomial[4#, # ]/(3# + 1), 4] != 0 &] (* Robert G. Wilson v, Oct 12 2005 *)
  • PARI
    isok(n) = binomial(4*n,n)/(3*n+1) % 4; \\ Michel Marcus, Apr 16 2015
    
  • Python
    from _future_ import division
    A078971_list = []
    for t in range(100):
        A078971_list.append((2**(2*t)-1)//3)
        for j in range(t):
            A078971_list.append((2**(2*t+1)+2**(2*j+1)-1)//3) # Chai Wah Wu, Mar 06 2016

Extensions

Comments and more terms from Ralf Stephan, Oct 30 2003
a(28)-a(44) from Robert G. Wilson v, Oct 12 2005

A055129 Repunits in different bases: table by antidiagonals of numbers written in base k as a string of n 1's.

Original entry on oeis.org

1, 1, 2, 1, 3, 3, 1, 4, 7, 4, 1, 5, 13, 15, 5, 1, 6, 21, 40, 31, 6, 1, 7, 31, 85, 121, 63, 7, 1, 8, 43, 156, 341, 364, 127, 8, 1, 9, 57, 259, 781, 1365, 1093, 255, 9, 1, 10, 73, 400, 1555, 3906, 5461, 3280, 511, 10, 1, 11, 91, 585, 2801, 9331, 19531, 21845, 9841, 1023, 11
Offset: 1

Views

Author

Henry Bottomley, Jun 14 2000

Keywords

Examples

			T(3,5)=31 because 111 base 5 represents 25+5+1=31.
      1       1       1       1       1       1       1
      2       3       4       5       6       7       8
      3       7      13      21      31      43      57
      4      15      40      85     156     259     400
      5      31     121     341     781    1555    2801
      6      63     364    1365    3906    9331   19608
      7     127    1093    5461   19531   55987  137257
Starting with the second column, the q-th column list the numbers that are written as 11...1 in base q. - _John Keith_, Apr 12 2021
		

Crossrefs

Rows include A000012, A000027, A002061, A053698, A053699, A053700. Columns (see recurrence) include A000027, A000225, A003462, A002450, A003463, A003464, A023000, A023001, A002275, A016123, A016125. Diagonals include A023037, A031973. Numbers in the table (apart from the first column and first two rows) are ordered in A053696.

Programs

  • Maple
    A055129 := proc(n,k)
        add(k^j,j=0..n-1) ;
    end proc: # R. J. Mathar, Dec 09 2015
  • Mathematica
    Table[FromDigits[ConstantArray[1, #], k] &[n - k + 1], {n, 11}, {k, n, 1, -1}] // Flatten (* or *)
    Table[If[k == 1, n, (k^# - 1)/(k - 1) &[n - k + 1]], {n, 11}, {k, n, 1, -1}] // Flatten (* Michael De Vlieger, Dec 11 2016 *)

Formula

T(n, k) = (k^n-1)/(k-1) [with T(n, 1) = n] = T(n-1, k)+k^(n-1) = (k+1)*T(n-1, k)-k*T(n-2, k) [with T(0, k) = 0 and T(1, k) = 1].
From Werner Schulte, Aug 29 2021 and Sep 18 2021: (Start)
T(n,k) = 1 + k * T(n-1,k) for k > 0 and n > 1.
Sum_{m=2..n} T(m-1,k)/Product_{i=2..m} T(i,k) = (1 - 1/Product_{i=2..n} T(i,k))/k for k > 0 and n > 1.
Sum_{n > 1} T(n-1,k)/Product_{i=2..n} T(i,k) = 1/k for k > 0.
Sum_{i=1..n} k^(i-1) / (T(i,k) * T(i+1,k)) = T(n,k) / T(n+1,k) for k > 0 and n > 0. (End)

A022170 Triangle of Gaussian binomial coefficients [ n,k ] for q = 6.

Original entry on oeis.org

1, 1, 1, 1, 7, 1, 1, 43, 43, 1, 1, 259, 1591, 259, 1, 1, 1555, 57535, 57535, 1555, 1, 1, 9331, 2072815, 12485095, 2072815, 9331, 1, 1, 55987, 74630671, 2698853335, 2698853335, 74630671, 55987, 1, 1, 335923
Offset: 0

Views

Author

Keywords

Examples

			Triangle begins:
  1;
  1,     1;
  1,     7,        1;
  1,    43,       43,          1;
  1,   259,     1591,        259,          1;
  1,  1555,    57535,      57535,       1555,        1;
  1,  9331,  2072815,   12485095,    2072815,     9331,     1;
  1, 55987, 74630671, 2698853335, 2698853335, 74630671, 55987, 1 ;
		

References

  • F. J. MacWilliams and N. J. A. Sloane, The Theory of Error-Correcting Codes, Elsevier-North Holland, 1978, p. 698.

Crossrefs

Cf. A003463 (k=1), A022220 (k=2), A022221 (k=3).

Programs

  • Maple
    A027873 := proc(n)
        mul(6^i-1,i=1..n) ;
    end procc:
    A022170 := proc(n,m)
        A027873(n)/A027873(m)/A027873(n-m) ;
    end proc: # R. J. Mathar, Jul 19 2017
  • Mathematica
    p[n_]:= Product[6^i - 1, {i, 1, n}]; t[n_, k_]:= p[n]/(p[k]*p[n-k]); Table[t[n, k], {n, 0, 15}, {k, 0, n}]//Flatten (* Vincenzo Librandi, Aug 13 2016 *)
    Table[QBinomial[n,k,6], {n,0,10}, {k,0,n}]//Flatten (* or *) q:= 6; T[n_, 0]:= 1; T[n_,n_]:= 1; T[n_,k_]:= T[n,k] = If[k < 0 || n < k, 0, T[n-1, k -1] +q^k*T[n-1,k]]; Table[T[n,k], {n,0,10}, {k,0,n}] // Flatten  (* G. C. Greubel, May 27 2018 *)
  • PARI
    {q=6; T(n,k) = if(k==0,1, if (k==n, 1, if (k<0 || nG. C. Greubel, May 27 2018

Formula

T(n,k) = T(n-1,k-1) + q^k * T(n-1,k). - Peter A. Lawrence, Jul 13 2017
G.f. of column k: x^k * exp( Sum_{j>=1} f((k+1)*j)/f(j) * x^j/j ), where f(j) = 6^j - 1. - Seiichi Manyama, May 09 2025
Previous Showing 21-30 of 103 results. Next