Ask Experts Questions for FREE Help !
Ask
    hopestar's Avatar
    hopestar Posts: 2, Reputation: 1
    New Member
     
    #1

    Apr 2, 2009, 09:49 PM
    How To Scramble Numbers On These Tables?
    Hi to all of you guys here…
    May this thread fits on this section. A friend of mine gave me this enigma. It is written in Excel format. Since here I can’t attach .xls file more than 585.9 KB, I don't know how to put the file, name Enigma.xls.
    There are infinite amount of tables, with ten rows (row 0,1,2,….9) each. Inside of each tables, there are numbers from 1 to 92, 93 to 184, 185 to 276, and 277 to 284, which lying on their certain rows. Here I gave the example tables that have been filled in for 40 tables. By finding the patterns/ formulas, my friend asked me to extend the tables to fill in the blank tables 41,42,43,etc as given beneath of Table 40. Just like SUDOKU, in each tables there will be no same numbers vertically, horizontally and diagonally. If these tables are using permutations from an ideal table that you can see beneath Table 40 (supposed the ideal table was right), then how to find the formulas of its permutations?
    Can somebody help me about this?
    Thx.
    Hope my English is good enough for explaining this.
    hopestar's Avatar
    hopestar Posts: 2, Reputation: 1
    New Member
     
    #2

    Apr 21, 2009, 07:03 AM
    Someone has made a program in Java like this:

    import java.util.*;
    public class Table {
    static Scanner console = new Scanner(System.in);
    public static void main (String[] args)
    {

    String list = "0105091317414549535721252933376165697377020304060 70810111214" +
    "1516181920222324262728303132343536383940424344464 74850515254" +
    "5556585960626364666768707172747576787980818283848 586878889909192";
    String number;
    int counter = 0;
    int randomNumber = 0;
    int rowPlacement = 0;


    Vector row_0 = new Vector();
    Vector row_1 = new Vector();
    Vector row_2 = new Vector();
    Vector row_3 = new Vector();
    Vector row_4 = new Vector();
    Vector row_5 = new Vector();
    Vector row_6 = new Vector();
    Vector row_7 = new Vector();
    Vector row_8 = new Vector();
    Vector row_9 = new Vector();

    for (counter=0; counter<184; counter = counter + 2)
    {
    number = list.substring(counter, counter + 2);

    //-------------------------------------------------------------------
    if (counter == 10 || counter == 20 || counter == 30 || counter >= 40)
    {
    rowPlacement = 0;
    }
    //-------------------------------------------------------------------
    do
    {
    randomNumber = (int) ( 10 * Math.random() );
    }
    while (rowPlacement > randomNumber);
    //-------------------------------------------------------------------

    if (randomNumber == 0)
    {
    row_0.addElement(number);
    rowPlacement = 0;
    }

    else if (randomNumber == 1)
    {
    row_1.addElement(number);
    rowPlacement = 1;
    }

    else if (randomNumber == 2)
    {
    row_2.addElement(number);
    rowPlacement = 2;
    }

    else if (randomNumber == 3)
    {
    row_3.addElement(number);
    rowPlacement = 3;
    }

    else if (randomNumber == 4)
    {
    row_4.addElement(number);
    rowPlacement = 4;
    }

    else if (randomNumber == 5)
    {
    row_5.addElement(number);
    rowPlacement = 5;
    }

    else if (randomNumber == 6)
    {
    row_6.addElement(number);
    rowPlacement = 6;
    }

    else if (randomNumber == 7)
    {
    row_7.addElement(number);
    rowPlacement = 7;
    }

    else if (randomNumber == 8)
    {
    row_8.addElement(number);
    rowPlacement = 8;
    }

    else if (randomNumber == 9)
    {
    row_9.addElement(number);
    rowPlacement = 9;
    }

    }
    System.out.println(row_0);
    System.out.println(row_1);
    System.out.println(row_2);
    System.out.println(row_3);
    System.out.println(row_4);
    System.out.println(row_5);
    System.out.println(row_6);
    System.out.println(row_7);
    System.out.println(row_8);
    System.out.println(row_9);
    }
    }

    But it didn't work correctly yet in order to result tables like the file I put at Mediafire.com (a file hosting service) name Enigma.xls:
    Free File Hosting Made Simple - MediaFire
    :)

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search


Check out some similar questions!

10 Tables combined [ 6 Answers ]

I have 10 tables that all have the same columns with the same names. I have created a new table that has all those same field names. I want the rows in all 10 tables to pull into one table or query. Would prefer a table. I would just combine all the tables but they're linked from other...

Letters are numbers and num lock off no numbers [ 2 Answers ]

I cannot get my hp pavilion notebook to respond, it started all of a sudden. When my num lock is on my letters on the keyboard turn into numbers... I=5 and so forth. Now when my num lock is off my keyboard works fine but I cannot use the number pad. I tried the fn key with almost every key on the...

Linking tables [ 1 Answers ]

How to link tables

Help with Multiplication tables [ 25 Answers ]

I have a 7 year old in 2nd grade. They are learning their multiplication tables, but my daughter is just not retaining anything we go over. We have tried just having her memorize and we have tried explaining that 2 x 3 is 2 added up 3 times. I have tried flash cards, quizzing her, etc. Any...


View more questions Search