Results 1 to 16 of 16

Thread: 0.123401234001234000...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    Ontario Canada
    Posts
    236

    0.123401234001234000...

    How would you find the 2550th digit of 0.12340123400123400012340000123400000.... where there are k zeros after the kth block of 1234.
    YL says:"Few are those who see with their own eyes and feel with their own hearts."(Einstein)

  2. #2
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    to find number of complete blocks, find the # of digits in first block and last block and find the sum of digits such that it is less than or equal to 2550. then just figure out the # of remaining digits. and go from there.
    Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!


    Did you know that...
    The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!

  3. #3
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: 0.123401234001234000...

    Originally posted by SilverSprite
    How would you find the 2550th digit of 0.12340123400123400012340000123400000.... where there are k zeros after the kth block of 1234.
    Question:

    Is 0 the first digit? If so,
    Does the . count? If so,
    that would make 1 in the third position.

    Or, do you count from 1, such that 1 is the 1st digit?

    Or, is this count similar to arrays, where the 1st digit is actually index = 0?

    If the "0." Doesn't count, why do you include them in your question?

  4. #4
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    BTW:


    If the sequence is 12340123400123400012340000....
    Instead of
    0.12340123400123400012340000....

    Then:

    The N'th block starts at Position P, where:

    P = (N2 + 7*N - 6)/2

    And,

    If K is an element of the set {1,2,3,4}

    Then

    N = (1/2)*[-7 plus/minus Sqr(81 + 8*(P - K))]

    So, for N to be rational, At a given position P, if K creates a rational integral value out of
    (1/2)*[-7 plus/minus Sqr(81 + 8*(P - K))], then K is at position P.

    If there is no K that creates a rational integral N, then 0 must be at position P.

    Unless I miscalculated.


    Now, How would this become more exact, I'm not sure.
    It must be transformable.
    Hmmmm,

  5. #5
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    I will define my own blocks:

    block 1:
    1234

    block 2:
    01234

    block 3:
    001234

    ...

    block n:
    000...0001234
    (n-1) 0's

    therefore the first block has 4 digits
    2nd has 5 digits
    ...
    nth block has n+3 digits

    after exactly nth block, the total number of digits would be:

    (4+n+3)n/2

    or (n^2+7n)/2

    I will now find the number of complete blocks such that the # of digits does not exceed 2550:

    (n^2+7n)/2<=2550

    gives me:

    n^2+7n<= 5100

    n=69....

    so when n=69

    (n^2+7n)/2-2550>4

    so the digit is probably a 0
    Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!


    Did you know that...
    The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    Ontario Canada
    Posts
    236
    block 1:
    12340

    block 2:
    123400

    block 3:
    1234000

    etc..

    i did it by guessing, and i got a 4
    YL says:"Few are those who see with their own eyes and feel with their own hearts."(Einstein)

  7. #7
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    I agree, it seems to be 4.:

    VB Code:
    1. ' I Must be > -10, or else err on the sqrroot
    2. Private Sub Command1_Click()
    3.     Dim I As Integer
    4.     Dim MyLine As Double
    5.     Dim MyCol As Integer
    6.     Dim MyOutStr As String
    7.         'I = Val(Text1.Text)
    8.         I = 2550
    9.         MyLine = Int((-1 + Sqr(1 + 8 * (I + 9))) / 2)
    10.         MyCol = (I + 9) - ((MyLine ^ 2 + MyLine) / 2)
    11.         If MyCol < 4 Then
    12.             MsgBox "The " & I & "'th Number is " & MyCol + 1
    13.         Else
    14.             MsgBox "The " & I & "'th Number is " & 0
    15.         End If
    16. End Sub



    -Lou

  8. #8
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    VB Code:
    1. Private Sub Form_Load()
    2. Dim ms As String
    3. While Len(ms) < 2550
    4. i = i + 1
    5. ms = ms & "1234" & String(i, "0")
    6. Wend
    7. MsgBox Mid$(ms, 2550, 1)
    8. End Sub

    4 is a winner

  9. #9
    Addicted Member
    Join Date
    Aug 2002
    Location
    Windsor, Ontario's City of Pollution
    Posts
    165

    solution by math

    Bugz,

    You said:

    n^2+7n<= 5100

    n=69....

    However, solving for n in
    n^2+7n-5100=0, you get
    (n-68)*(n+75)=0
    n=68 or n=-75
    Since n>0, n=68, not 69.

    When n=68, (n*(n+7))/2 is exactly 2550, so that must mean it is the last digit of a block, which is 4.

    Since this is a multiple choice math contest question (don't remember which contest), they would never make the answer 0, since it first appears to be the most probable answer and anyone who can't do the question would guess 0, and the people who make these contests are evil...
    Merry Math Making!

  10. #10
    Lively Member
    Join Date
    Aug 2002
    Posts
    83

    Dont Understand One Part...

    In one of the passages:
    after exactly nth block, the total number of digits would be:
    i dont understand that. Why would you multiply (n+7) by n??
    I just cant figure it out. I get how you get the numebr of zeros is(n-1) and that the nth block will have (n+3) digits, and that after the nth block there will be (n+7) digits, but i dont get the part where you muliply (n+7) by n. Can any1 explain this to me?? I know the equation works, but i just dont understand how you got this one part.

  11. #11
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    and that after the nth block there will be (n+7)
    how did you come up with this conclusion?

    anywayz, the first block has:

    1234

    second block has:
    01234

    third block has:

    001234

    and the nth block has:
    0000...0001234

    so the total number of digits is:

    4+5+...(n+2)+(n+3)

    notice the average of 4 and n+3, 5 and n+2, etc are (n+7)/2
    there are a total of numbers so the sum is:

    n(n+7)/2
    Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!


    Did you know that...
    The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!

  12. #12
    Lively Member
    Join Date
    Aug 2002
    Posts
    83

    What?

    where in the world did you come up with (n+2)?????

  13. #13
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    Is there a problem with this?

    VB Code:
    1. I = 2550
    2.         MyLine = Int((-1 + Sqr(1 + 8 * (I + 9))) / 2)
    3.         MyCol = (I + 9) - ((MyLine ^ 2 + MyLine) / 2)
    4.         If MyCol < 4 Then
    5.             MsgBox "The " & I & "'th Number is " & MyCol + 1
    6.         Else
    7.             MsgBox "The " & I & "'th Number is " & 0
    8.         End If

    -Lou

  14. #14
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    it just so happens that kth block has k+3 elements, so (n-1)'s block has n+2 elements
    Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!


    Did you know that...
    The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!

  15. #15
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    Originally posted by bugzpodder
    it just so happens that kth block has k+3 elements, so (n-1)'s block has n+2 elements
    Block 1: 12340 : 5 elements
    Block 2: 123400 : 6 elements
    Block 3: 1234000 : 7 Elements
    ...
    Block N: 1234 & replace(space(N), " ", "0", 1, -1, vbTextCompare)

    As stated :
    Originally posted by SilverSprite
    where there are k zeros after the kth block of 1234.
    So, the N'th block has N+4 elements,

    Which makes the (N-1)'s block have N+3 elements.

    Right?

  16. #16
    Addicted Member
    Join Date
    Aug 2002
    Location
    Windsor, Ontario's City of Pollution
    Posts
    165
    Is it so hard to notice that bugz's blocks are different from everyone else's? Bugz has the block defined as follows:

    Block 1: 1234
    Block 2: 01234
    Block 3: 001234
    etc...

    For bugz's blocks, the nth block has (n+3) digits, and the (n-1)th block has (n+2) digits. For everyone else's blocks;

    Block 1: 12340
    Block 2: 123400
    Block 3: 1234000
    etc...

    The nth block has (n+4) digits, and the (n-1)th block has (n+3) digits. I don't see how this is worth arguing about...No one is even wrong!
    Merry Math Making!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width