All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
I Do Belong (Posted on 2009-02-22) Difficulty: 4 of 5
Each number in this table has a significance, and it is not just the property of the individual number.

What statement might define the right for each to appear?

1 1 1 2 4 4 3 9 9 13 169 16 67 4489 25 264 69696 36 1667 2778889 49
.. ... 64

That said, is it possible (and how) to analytically define the precise numerical values of successive rows?

  Submitted by brianjn    
No Rating
Solution: (Hide)
Consider the columns to be labeled N, N2 and DS, then N is the first occurrence for which the digital sum DS of N2 is also a square.

I could not find this on Sloane due to an error. Neil Sloane offered me the listing A061912.

The next row is: 16667    277788889   64.

It is apparent from that response that one probably cannot analytically decide the next row of the sequence without computer intervention.

The following program does not isolate the first occurrence of a specific digit sum. Rather the program was written to create a list to hopefully determine if a pattern could be discerned.

The upper value of "a" would need to be increased, and, as this is written with Quickbasic, the N value would need to be processed outside of the program as the N2 values very quickly are truncated to scientific notation.

DIM SHARED num(30)
DIM SHARED a(20)

CLS

OPEN "sqandsq.txt" FOR OUTPUT AS #1

FOR a = 1 TO 10000
n$ = ""
n$ = LTRIM$(STR$(a * a))
ds = 0
    FOR x = 1 TO LEN(n$)
      a(x) = VAL(MID$(n$, x, 1))
      ds = ds + a(x)

      IF (SQR(ds) = INT(SQR(ds)) AND x = LEN(n$)) THEN
         PRINT #1, a, n$, ds
         PRINT a, n$, ds
      END IF
    NEXT
NEXT
CLOSE 1

Comments: ( You must be logged in to post comments.)
  Subject Author Date
Puzzle ThoughtsK Sengupta2023-09-22 09:59:00
re(2): computer solutionDaniel2009-02-23 10:08:19
re: computer solutionbrianjn2009-02-22 21:05:08
computer solutionDaniel2009-02-22 14:23:49
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information