OFFSET
0,3
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.
LINKS
Andrey Zabolotskiy, Table of n, a(n) for n = 0..8192
A. A. Kirillov, A Tale of Two Fractals, Birkhäuser, 2013, doi:10.1007/978-0-8176-8382-5. See chapter 3, in particular Table 3.1.
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
PROG
(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
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrey Zabolotskiy, Aug 06 2020
STATUS
approved