ROSECODE 544
Distinct powers revisited
Consider all integer combinations of ab for
21=2, 22=4, 23=8, 24=16, 25=32
31=3, 32=9, 33=27, 34=81, 35=243
41=4, 42=16, 43=64, 44=256, 45=1024
51=5, 52=25, 53=125, 54=625, 55=3125
If they are then placed in numerical order, with any repeats removed, we get the following sequence of 18 distinct terms:
2, 3, 4, 5, 8, 9, 16, 25, 27, 32, 64, 81, 125, 243, 256, 625, 1024, 3125
Given two integers
For example,
Find the last 20 digits of
This problem is a harder version of Project Euler Problem#29 (https://projecteuler.net/problem=29)