[go: up one dir, main page]

login
Revision History for A258660 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Numbers n such that the number of digits d in n is not prime and for each factor f of d the sum of the d/f digit groupings of size f is a square.
(history; published version)
#12 by N. J. A. Sloane at Tue Jun 09 21:07:58 EDT 2015
STATUS

proposed

approved

#11 by Chai Wah Wu at Tue Jun 09 19:47:23 EDT 2015
STATUS

editing

proposed

#10 by Chai Wah Wu at Mon Jun 08 18:59:23 EDT 2015
COMMENTS

If a(n) has m = p^k digits, then a(n)*10^((p-1)*m) is also a member of the sequence. For instance, 1521*10^(2^k-4) is in the sequence for all integers k >=2. # Chai Wah Wu, Jun 08 2015

#9 by Chai Wah Wu at Mon Jun 08 18:58:36 EDT 2015
LINKS

Chai Wah Wu, <a href="/A258660/b258660.txt">Table of n, a(n) for n = 1..3730</a>

#8 by Chai Wah Wu at Mon Jun 08 18:58:09 EDT 2015
DATA

1, 4, 9, 1521, 3600, 7396, 8100, 103041, 120409, 160801, 11471769, 11655396, 128020884, 1521000, 12802084, 15210000, 22724289, 36000000, 42889401, 42928704, 45481536, 45968400, 46009089, 54567769, 61811044, 62236321, 70006689, 73925604, 73960000, 76965529, 79174404, 81000000, 85008400, 97693456, 97713225, 100000000

COMMENTS

If a(n) has m = p^k digits, then a(n)*10^((p-1)*m) is also a member of the sequence. For instance, 1521*10^(2^k-4) is in the sequence for all integers k. # Chai Wah Wu, Jun 08 2015

PROG

(Python)

from sympy import divisors

from gmpy2 import is_prime, isqrt, isqrt_rem, is_square

A258660_list = []

for l in range(1, 17):

....if not is_prime(l):

........fs = divisors(l)

........a, b = isqrt_rem(10**(l-1))

........if b > 0:

............a += 1

........for n in range(a, isqrt(10**l-1)+1):

............n2 = n**2

............ns = str(n2)

............for g in fs:

................y = 0

................for h in range(0, l, g):

....................y += int(ns[h:h+g])

................if not is_square(y):

....................break

............else:

................A258660_list.append(n2) # Chai Wah Wu, Jun 08 2015

EXTENSIONS

Corrected a(13)-a(14) by Chai Wah Wu, Jun 08 2015

STATUS

approved

editing

#7 by Alois P. Heinz at Sun Jun 07 07:07:13 EDT 2015
STATUS

proposed

approved

#6 by Alois P. Heinz at Sat Jun 06 22:07:37 EDT 2015
STATUS

editing

proposed

#5 by Alois P. Heinz at Sat Jun 06 22:07:33 EDT 2015
CROSSREFS

Cf. A153745.

#4 by Alois P. Heinz at Sat Jun 06 22:07:03 EDT 2015
COMMENTS

a(n) is A153745(n)^2.

FORMULA

a(n) = A153745(n)^2.

STATUS

proposed

editing

#3 by Doug Bell at Sat Jun 06 21:37:32 EDT 2015
STATUS

editing

proposed