A sequence of positive integers with is further defined by for
The second time in the sequence that the last three digits of will equal the last three digits of will occur at whose last three digits are Find
The first time is the trivial case at
For example, if the last three digits of both
and
were both
then
and
so the answer would be
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Used a simple code to solve it
public class Main
{
}