Difference Tab -> Algebra

This is a discussion on Difference Tab -> Algebra within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hey, I have a difference Table like this: Code: N Ts D1 D2 D3 1x1 1 2x2 5 4 3x3 ...

  1. #1
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339

    Difference Tab -> Algebra

    Hey,

    I have a difference Table like this:

    Code:
    N        Ts        D1    D2    D3 
    
    1x1     1         
    2x2     5         4          
    3x3     14       9       5
    4x4     30       16     7      2
    5x5     55       25     9      2
    6x6     91       36     11    2
    7x7     140     49     13    2
    D3 contains the pattern, how do i now make a formula to get from N to Ts? I think its like n then somthing else which im not sure of.

    Thanks for any help,

    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Ok, i have got the pattern the one i need is in d1.

    Add up all the square numbers in d1 to the value of n then add 1.

    E.g

    for n = 4, ts =

    4 + 9 + 1 = 14


    I now need a formula to add up the square numbers, does anyone know any formula for this area?

    Thanks
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  3. #3
    Unregistered
    Guest
    I think the formula is (1/6)n(n+1)(2n+1).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. small -> big -> bigger -> bigger than bigger -> ?
    By happyclown in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 03-11-2009, 01:12 PM
  2. Tab Ordering of GUI Controls
    By cloudy in forum Windows Programming
    Replies: 2
    Last Post: 04-22-2006, 10:13 AM
  3. Tab order in Tab Control
    By Halloko in forum Windows Programming
    Replies: 2
    Last Post: 05-09-2005, 12:08 AM
  4. Difference between '->' and '.'
    By Mystic_Skies in forum C Programming
    Replies: 2
    Last Post: 11-20-2004, 10:45 PM
  5. Visual C++
    By Golffor1 in forum C++ Programming
    Replies: 1
    Last Post: 08-04-2003, 05:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21