import pylab
sum_digits_raised = []
linear = []
for i in range(500000):
    sum_digits_raised.append(sum(int(d) ** 5 for d in str(i)))
    linear.append(i)
pylab.plot(sum_digits_raised, label='Sum of digits to the fifth power')
pylab.plot(linear, label='linear')
pylab.legend(loc='upper left')
pylab.figure()
pylab.show()

89f5c3b8ee6755ba2f74f6d84761ba03e60b158f
<mask token>

<mask token>
for i in range(500000):
    sum_digits_raised.append(sum(int(d) ** 5 for d in str(i)))
    linear.append(i)
pylab.plot(sum_digits_raised, label='Sum of digits to the fifth power')
pylab.plot(linear, label='linear')
pylab.legend(loc='upper left')
pylab.figure()
pylab.show()

<mask token>
sum_digits_raised = []
linear = []
for i in range(500000):
    sum_digits_raised.append(sum(int(d) ** 5 for d in str(i)))
    linear.append(i)
pylab.plot(sum_digits_raised, label='Sum of digits to the fifth power')
pylab.plot(linear, label='linear')
pylab.legend(loc='upper left')
pylab.figure()
pylab.show()

import pylab
sum_digits_raised = []
linear = []
for i in range(500000):
    sum_digits_raised.append(sum(int(d) ** 5 for d in str(i)))
    linear.append(i)
pylab.plot(sum_digits_raised, label='Sum of digits to the fifth power')
pylab.plot(linear, label='linear')
pylab.legend(loc='upper left')
pylab.figure()
pylab.show()
