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-2 of 2 results.

A282728 Irregular triangle read by rows: row n gives "digits" d_1, d_2, d_3, ... of the 3-expansion of A282720(n).

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Mar 03 2017

Keywords

Examples

			Triangle begins:
  1;
  3;
  6;
  2,  3;
  2,  7;
  4,  6;
  4, -2, -7;
  ...
		

Crossrefs

Cf. A282720.

Programs

  • PARI
    add(v, w) = v = Vecrev(v); w = Vecrev(w); my(z = if (#v == #w, v+w, if (#v < #w, Vec(v,#w) + w, Vec(w, #v) + v))); Vecrev(z);
    row(n) = if (n==0, return([])); if (n==1, return([1])); my(e = logint(n, 2), r = n-2^e); if (r <= 2^(e-1), add(2*digits(3^(e-1), 3), add(a(2^(e-1)+r), a(r))), add(4*digits(3^e, 3), add(-digits(2*3^(e-1), 3), add(-a(2^(e-1)+2^e-r), -a(2^e-r))))); \\ Michel Marcus, Feb 25 2025

Extensions

More terms from Michel Marcus, Feb 25 2025

A336877 The harmonic function on the Sierpinski gasket with vertices 0, 1, w = (-1)^(1/3) defined by the values a(0) = 0, a(1) = 1, a(w) = -1.

Original entry on oeis.org

0, 1, 5, 12, 25, 41, 60, 85, 125, 168, 205, 245, 300, 361, 425, 504, 625, 749, 840, 925, 1025, 1128, 1225, 1337, 1500, 1669, 1805, 1944, 2125, 2321, 2520, 2761, 3125, 3492, 3745, 3965, 4200, 4429, 4625, 4836, 5125, 5417, 5640, 5857, 6125, 6408, 6685, 7013
Offset: 0

Views

Author

Andrey Zabolotskiy, Aug 06 2020

Keywords

Comments

The harmonic functions on the Sierpiński gasket are fully defined by their values at the corners of the triangle: 0, 1, w. A harmonic function can be restricted to the interval at the real axis [0; 1] and then extended to all nonnegative real arguments. The function with a(0) = 0, a(1) = 1, a(w) = -1 yields integer values at integer arguments.
If we replace 3 by d+1 on the right side of the first line in the Formula section, we'll obtain the analog for the d-dimensional Sierpiński gasket for d>1. The case d=1 gives the squares A000290, the case d=0 gives A282720.

Crossrefs

Cf. A336878 (second differences divided by 3), A178590, A178568.
Cf. A047999.

Programs

  • Python
    def a(d, m=6):
        chi = [0, 1]
        for p in range(m):
            chi += [(d+1)*chi[k]+2*chi[2**p]-chi[2**p-k] for k in range(1, 2**p+1)]
        return chi
    chi = a(2)
    print(chi)
    d2chi3 = [(chi[k+1]-2*chi[k]+chi[k-1])//3 for k in range(1, len(chi)-1)]
    print(d2chi3) # A336878

Formula

a(2^p+n) - 2*a(2^p) + a(2^p-n) = 3 * a(n).
a(2*n) = 5 * a(n).
a(n+1) - a(n) = A178590(2n+1) [discovered by Sequence Machine]; more generally, the 1st differences of the analogous sequence with given d (see comment above) is the bisection of the (d+1)-th row of A178568. - Andrey Zabolotskiy, Oct 07 2021
Showing 1-2 of 2 results.