TotallyOriginallyCreatedByMe Number

Let a 1 a 2 a 3 a n \overline{a_1 a_2 a_3 \ldots a_n} be the smallest n n -digit number greater than 1 1 with a 1 , a 2 , a 3 , , a n 0 a_1, a_2, a_3, \ldots, a_n \ne 0 such that k = 1 n a k a k = a 1 a 2 a 3 a n \large \displaystyle \sum_{k=1}^n a_k^{a_k} = \overline{a_1 a_2 a_3 \ldots a_n} . What is the value of k = 1 n a k \displaystyle \prod_{k=1}^n a_k ?


The answer is 180.

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.

3 solutions

Thaddeus Abiy
May 10, 2014

The original python script I wrote:

1
2
3
4
5
6
n = 1
while True:
    n +=1
    if sum([pow(int(x),int(x)) for x in str(n)])==n:
        print n
        break

An expanded version for readability purposes:

1
2
3
4
5
6
7
8
9
n = 1
while True:
    n += 1
    Sum = 0
    for an in str(n):
        Sum += pow(int(an),int(an))
    if Sum == n:
        print n
        break

Log in to reply

lol "TotallyOriginallyCreatedbyMe"

Thaddeus Abiy - 7 years, 1 month ago
Soumava Pal
Feb 17, 2016

Here is my solution. 3435 => 3*4*3*5=180 is our answer.

Thank you!! =D

Pi Han Goh - 5 years, 3 months ago

Log in to reply

You are welcome! though I did not understand why you said Thank You!! xD

Soumava Pal - 5 years, 3 months ago

Log in to reply

Glad you enjoyed this question, that's why I said thank you because you spent time on my question haha!

Pi Han Goh - 5 years, 3 months ago

Log in to reply

@Pi Han Goh Oh you are welcome, brother! Your questions are always fun to do, often containing much to learn.

Soumava Pal - 5 years, 3 months ago

Log in to reply

@Soumava Pal Hahah thanks! You should post some as well! = )

Pi Han Goh - 5 years, 3 months ago

Log in to reply

@Pi Han Goh I will come back to posting once my finals for the last year of high school get over in March. In the meantime, I am struggling to scrape through chemistry and physics in the final examination. xD

Soumava Pal - 5 years, 3 months ago
Connor Kenway
May 11, 2014

Here's my solution -http://ideone.com/M4tkU1 It outputs 3435 so 3 3 4 5=9 20=180

I dont know how the multiplication symbol vanished between the digits i wrote 3 3 4 5=9 20=180

Connor Kenway - 7 years, 1 month ago

Apparently the star multiplication symbol is used to italicise text

Connor Kenway - 7 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...