Skip to content

Instantly share code, notes, and snippets.

/problem.py Secret

Created September 21, 2017 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2a5080094d7deb396bedc330a0656d76 to your computer and use it in GitHub Desktop.
Save anonymous/2a5080094d7deb396bedc330a0656d76 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
def digit_adder(num):
return sum([int(x) for x in str(num)])
x = []
for i in range(10000):
x.append((digit_adder(3**i)/digit_adder(3**(i+1))))
plt.plot(x)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment