-
-
Save anonymous/2a5080094d7deb396bedc330a0656d76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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