A320030 Automaton sum similar to A102376 but using mod 3 instead of mod 2.
1, 4, 13, 4, 16, 52, 13, 52, 121, 4, 16, 52, 16, 64, 208, 52, 208, 484, 13, 52, 121, 52, 208, 484, 121, 484, 1093, 4, 16, 52, 16, 64, 208, 52, 208, 484, 16, 64, 208, 64, 256, 832, 208, 832, 1936, 52, 208, 484, 208, 832, 1936, 484, 1936, 4372, 13, 52, 121, 52
Offset: 1
Keywords
Links
- Nathan M Epstein, Animation of CA
Programs
-
Python
import numpy as np from scipy import signal frameSize = 301 filter = [[0,1,0],[1,0,1],[0,1,0]] # this defines the CA neighborhood frame = np.zeros((frameSize,frameSize)) frame[frameSize//2,frameSize//2] = 1 mod = 3 sequence = [1] for j in range(140): frame = signal.convolve2d(frame, filter, mode='same') frame = np.mod(frame, mod) sequence.append(int(np.sum(frame.reshape(1,-1))))
Formula
a(3^n) = A096053(n).
Comments