login

Revision History for A243151

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Least number k not divisible by 10 such that the decimal expansion of k^n contains some digit exactly n times.
(history; published version)
#6 by N. J. A. Sloane at Sun Jun 01 00:08:30 EDT 2014
STATUS

proposed

approved

#5 by Charles R Greathouse IV at Sat May 31 22:57:48 EDT 2014
STATUS

editing

proposed

#4 by Charles R Greathouse IV at Sat May 31 22:57:15 EDT 2014
NAME

Least number k not divisible by 10 such that the decimal expansion of k^n contains some integer digit exactly n times.

COMMENTS

If k were divisible by 10, all of those numbers would work for any n and the sequence would be 1, 10, 10, 10, 10, 10, 10, 10, ....

Does a(n) exist for each n? - Charles R Greathouse IV, May 31 2014

FORMULA

a(n) > 10 for all n > 1. (Proof: check up to 21, then note that 9^22 < 10^21.) Charles R Greathouse IV, May 31 2014

EXAMPLE

1^2, 2^2, 3^2, 4^2, ... 9^2 all have differeny different digits. 11^2 = 121 has two of the same digit. So a(2) = 11.

PROG

(PARI) digitct(n)=my(d=digits(n)); vector(10, i, sum(j=1, #d, d[j]==i-1))

a(n)=if(n==1, return(1)); my(k=9); until(k++%10 && #select(i->i==n, digitct(k^n)), ); k \\ Charles R Greathouse IV, May 31 2014

STATUS

proposed

editing

#3 by Derek Orr at Sat May 31 11:14:38 EDT 2014
STATUS

editing

proposed

#2 by Derek Orr at Sat May 31 01:47:49 EDT 2014
NAME

allocated for Derek OrrLeast number k not divisible by 10 such that k^n contains some integer exactly n times.

DATA

1, 11, 36, 34, 99, 258, 391, 163, 341, 951, 867, 1692, 1114, 793, 4792, 3019, 1935, 5469, 6398, 6152, 8906, 1987, 15815, 19603, 16292, 26216, 32113, 19718, 24354, 45903, 15776, 42202, 34572, 44411, 46911, 67972, 39291, 52299, 30499, 28383, 38001, 89782, 95017, 55954

OFFSET

1,2

COMMENTS

If k were divisible by 10, all of those numbers would work for any n and the sequence would be 1, 10, 10, 10, 10, 10, 10, 10, ...

EXAMPLE

1^2, 2^2, 3^2, 4^2, ... 9^2 all have differeny digits. 11^2 = 121 has two of the same digit. So a(2) = 11.

PROG

(Python)

def c(n):

..for k in range(10**5):

....if k%10 !=0:

......count = 0

......for i in range(10):

........if str(k**n).count(str(i)) == n:

..........return k

n = 1

while n < 100:

..print(c(n))

..n+=1

KEYWORD

allocated

nonn,base

AUTHOR

Derek Orr, May 31 2014

STATUS

approved

editing

#1 by Derek Orr at Sat May 31 01:47:49 EDT 2014
NAME

allocated for Derek Orr

KEYWORD

allocated

STATUS

approved