Jump to content
BrainDen.com - Brain Teasers

EventHorizon

VIP
  • Posts

    578
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by EventHorizon

  1. Inspired by I thought I would give my own. 2,4,3,1,6,5,7 3,7,5,6,1,8,2,4 2,7,6,3,9,4,8,5,1 1) What would it be for 10 numbers? What method am I using? Here's another one (but it is (hopefully) harder, so I'll give all of them up to 9): 1 1,2 1,2,3 4,1,3,2 3,1,4,5,2 6,3,2,5,4,1 1,4,3,2,6,5,7 5,7,8,6,4,1,3,2 4,5,8,6,2,7,3,1,9 2) What is the order for 10 numbers? What is the method?
  2. And another excerpt from the page for "0.999..." So since decimal places are the digits after the decimal point, it seems there is one pair of equal decimal expansion representations for each positive integer and each negative integer. And this is exactly the set of all the numbers that fit the OP. Any other terminating decimal expansion will have the pair of representations equal at one or more decimal places. It is interesting that 0 fails in this regard. The method of decimal representation we use has no way of approaching 0 with repeating 9's due to the fact that adding value in a decimal place always increases the distance from 0. If you change the OP to require a different digit in each place (not just decimal place, and can't simply not have a value explicitely put in a place (ie, both 0's in hundreds place of 34 and 67)), you find that at least one number needs to be infinite. You obviously cannot have an infinite number equal to a finite one. But what about two infinite numbers? Sure, if you subtract the decimal representations of two infinite numbers created by an infinite decimal expansion, you could end up with a finite decimal expansion. But it seems it isn't possible in the case where the digits are different at every position. If you try the "trailing 9's" approach you end up with ....99999.9999... = ...00000.0000..., but the number on the right is 0, while the other is infinite. But are all infinite numbers created by this decimal expansion method equal anyway? For instance, is ...22222.2222... = ...11111.1111... ? You can keep subtracting 1 from both and never reach a negative number (or even a finite number). I'm thinking every infinite number created using this method of decimal expansion is equal (and equal to aleph-naught), and so the subtraction of the decimal expansions doesn't really apply since all are the same number/concept... and the difference is simply undefined. Sure, there are higher degrees of infinity, but they are essentially 2^(one of these infinite number) or more in "value." Hyperreals sound interesting. I can't, at the moment, understand how there can be a non-zero infinitesimal. I'll quickly look that up. It seems that they handle it essentially like the different degrees of infinity, and just call all the infinitesimals nonzero. It seems to me like they are kept as two separate concepts, and when you order values you order them first by its "standard part" and then by the infinitesimals included. Anyone have thoughts on any of this or disagree vehemently on a point?
  3. I found a mistake in the derivation, so my equation is wrong. I accidently omitted something which made it much easier to solve, but incorrect.
  4. (Hint: don't look for the curve, just examine the distance between them and how it changes with time) I'll try (again) to find the equation for the path in a bit. Edit: I thought I'd include the last equation I got, but kept failing to verify. So I don't know it if is correct.
  5. So now we just need to determine if it matters if the frictionless tunnel goes through the center of the earth or not.
  6. This means that you can completely ignore the parts of the earth further than you from the center of the earth, so effectively you feel the gravity of standing on a smaller earth. The effective mass of this smaller earth would be d*(4/3)pi*r2^3, where d is the density of the earth (assumed in the OP as homogeneous) and r2 is your distance from the center of the earth. Notice that this effective mass is equal to the mass of the earth multiplied by r2^3/r^3. Plugging the new mass and radius into the equation to calculate gravitation gives f2 = GmE(r2^3/r^3)/r2^2 = (r2/r)*GmE/r^2 = (r2/r)*9.8m/s^2 So now we've got the gravity we can plug into some calculus. Here's the setup for a tunnel through the center of the earth. d2x/dt2= -9.8*x/r dx/dt (0) = 0 x(0) = r where r = (40*10^6)/2pi. (time to pull out my old diff eq textbook... since I remember essentially nothing from that class.) x''+(9.8/r)x=0 roots of the characteristic equation are +/- sqrt(9.8/r) * i. x = c1* cos(sqrt(9.8/r)*t) + c2* sin(sqrt(9.8/r)*t) The equation goes through half an oscillation (the answer we're looking for) in pi/(sqrt(9.8/r)) =pi*sqrt®/sqrt(9.8). =pi*sqrt(40*10^6/(2pi)))/sqrt(9.8) =2532.0769 seconds. =42.2 minutes I think I'll wait a bit to look at a tunnel not going through the center of the earth.... because I'm not sure I have much confidence in what I just did. But if it is right, falling through a vacuum to the center of the earth would take 20 minutes. That's kinda interesting. Does that sound plausible to anyone?
  7. So it looks like I had paradoxes on the mind when drafting that post. What I meant (in each of the three mentions of the word paradox) was contradiction. I hate when I read through one of my posts and find misused words. Too bad I'm no longer a VIP or I'd be able to fix them. Edit: Hey, I'm a VIP again, thanks rookie1ja.
  8. Didn't notice psykomakia's post. That's what i get for making dinner while puzzling.
  9. Third, fold again using a fan-like method as shown in the diagram below, alternating forwards and backwards folds. Now all the perforation and only the perforation is along that diagonal... so letta rip.
  10. #include <stdio.h> #include <stdlib.h> #include <iostream> #include <memory.h> #include <vector> using namespace std; #define GRIDSIZE 8 enum dir { dir_front = 0, dir_back = 1, dir_up = 2, dir_down = 3, dir_right = 4, dir_left = 5, num_dirs = 6, dir_error = 7, dir_undo = 8 }; dir facing; dir move; vector<int> hist; int displacement = {0,0,-GRIDSIZE,GRIDSIZE,1,-1,0,0}; int startpos; dir startdir; dir tiltarray[] = {dir_error,dir_error,dir_up,dir_down,dir_right,dir_left, dir_error,dir_error,dir_down,dir_up,dir_left,dir_right, dir_error,dir_error,dir_back,dir_front,dir_up,dir_up, dir_error,dir_error,dir_front,dir_back,dir_down,dir_down, dir_error,dir_error,dir_right,dir_right,dir_back,dir_front, dir_error,dir_error,dir_left,dir_left,dir_front,dir_back, dir_error,dir_error,dir_error,dir_error,dir_error,dir_error, dir_error,dir_error,dir_error,dir_error,dir_error,dir_error}; dir tilt(dir cur, dir tiltdir) { int val = cur*num_dirs+tiltdir; return tiltarray; } void printdir(dir cur) { switch (cur) { case dir_front: cout << "1"; break; case dir_back: cout << "6"; break; case dir_up: cout << "^"; break; case dir_down: cout << "v"; break; case dir_right: cout << ">"; break; case dir_left: cout << "<"; break; default: cout << " "; break; } } void drawgrid() { for(int i = 0; i < GRIDSIZE*2+1; i++) cout << "_"; cout << endl; for(int j = 0; j < GRIDSIZE; j++) { cout << "|"; for(int i = 0; i < GRIDSIZE; i++) { printdir(facing); //printdir(move); if (i <= GRIDSIZE-2) { if ((move==dir_right) || (move==dir_left)) { cout << "="; } else { cout << " "; } } } cout << "|" << endl; if (j <= GRIDSIZE-2) { cout << "|"; for(int i = 0; i < GRIDSIZE; i++) { if ((move==dir_down) || (move==dir_up)) { cout << "|"; } else { cout << " "; } if (i < GRIDSIZE-1) cout << "X"; } cout << "|" << endl; } } for(int i = 0; i < GRIDSIZE*2+1; i++) cout << "-"; cout << endl; } int validmove(dir tiltdir, int verbose) { if (((tiltdir==dir_up)&&(hist.back()<GRIDSIZE)) || ((tiltdir==dir_down)&&(hist.back()>=(GRIDSIZE-1)*GRIDSIZE)) || ((tiltdir==dir_right)&&(hist.back()%GRIDSIZE==GRIDSIZE-1)) || ((tiltdir==dir_left)&&(hist.back()%GRIDSIZE==0))) { if (verbose) cout << "Invalid move: Boundary hit." << endl; return 0; } if (facing] != dir_error) { if (verbose) cout << "Invalid move: Repeating a square." << endl; return 0; } if ((tilt(facing,tiltdir)==dir_front) && (hist.size() != GRIDSIZE*GRIDSIZE-1)) { if (verbose) cout << "Invalid move: 1 would be facing up." << endl; return 0; } return 1; } int solved() { if ((hist.size()==GRIDSIZE*GRIDSIZE) && (facing == dir_front)) return 1; return 0; } int validmovecircuit(dir tiltdir) { if (((tiltdir==dir_up)&&(hist.back()<GRIDSIZE)) || ((tiltdir==dir_down)&&(hist.back()>=(GRIDSIZE-1)*GRIDSIZE)) || ((tiltdir==dir_right)&&(hist.back()%GRIDSIZE==GRIDSIZE-1)) || ((tiltdir==dir_left)&&(hist.back()%GRIDSIZE==0))) return 0; if (facing] != dir_error) return 0; if (tilt(facing,tiltdir)==dir_front) return 0; return 1; } int solvedcircuit(dir tiltdir) { dir nextdir = tilt(facing,tiltdir); int nextpos = hist.back()+displacement; if ((hist.size()==GRIDSIZE*GRIDSIZE) && (nextdir == startdir) && (nextpos == startpos)) return 1; return 0; } int main(int argc, char *argv[]) { hist.push_back(0); for(int i = 0; i < GRIDSIZE*GRIDSIZE; i++) { facing = dir_error; move = dir_error; } facing = dir_front; drawgrid(); int ch = 0; while (1) { if (ch != 10) cout << "Enter command (wasd,k-solve,o-circuit,' '-undo): "; ch = getchar(); dir tiltdir = dir_error; switch (ch) { case 'w'://up tiltdir = dir_up; break; case 's'://down tiltdir = dir_down; break; case 'd'://right tiltdir = dir_right; break; case 'a'://left tiltdir = dir_left; break; case ' '://undo tiltdir = dir_undo; break; case 'o'://circuit { int xpos,ypos,dirtemp; cout << "X (0-" << (GRIDSIZE-1) << "): "; cin >> xpos; cout << "Y (0-" << (GRIDSIZE-1) << "): "; cin >> ypos; cout << "dir (0-f,1-b,2-u,3-d,4-r,5-l):"; cin >> dirtemp; startdir = (dir) dirtemp; startpos = ypos*GRIDSIZE+xpos; hist.clear(); hist.push_back(startpos); for(int i = 0; i < GRIDSIZE*GRIDSIZE; i++) { facing = dir_error; move = dir_error; } facing = startdir; hist.reserve(GRIDSIZE*GRIDSIZE+1); while(hist.size() > 0) { dir nextone = dir_error; switch(move) { case dir_error: nextone = dir_up; break; case dir_up: nextone = dir_down; break; case dir_down: nextone = dir_right; break; case dir_right: nextone = dir_left; break; case dir_left: nextone = dir_undo; break; default: cout << "Should never get here!!" << endl; } if (nextone == dir_undo) { if (hist.size() <= 1) break; facing = dir_error; move = dir_error; hist.pop_back(); continue; } move = nextone; if (validmovecircuit(nextone)) { dir temp = tilt(facing,nextone); hist.push_back(hist.back()+displacement); facing = temp; move = dir_error; if (hist.size()==GRIDSIZE*GRIDSIZE) { dir dirs = {dir_up,dir_down,dir_right,dir_left,dir_undo}; for(int i = 0; i < 4; i++) { if (solvedcircuit(dirs)) { move = dirs; cout << "Found one!" << endl; drawgrid(); move = dir_error; } } } } } cout << "Done!" << endl; break; } case 'k'://solve it { int xpos,ypos; cout << "X (0-" << (GRIDSIZE-1) << "): "; cin >> xpos; cout << "Y (0-" << (GRIDSIZE-1) << "): "; cin >> ypos; startpos = ypos*GRIDSIZE+xpos; hist.clear(); hist.push_back(startpos); for(int i = 0; i < GRIDSIZE*GRIDSIZE; i++) { facing = dir_error; move = dir_error; } facing = dir_front; hist.reserve(GRIDSIZE*GRIDSIZE+1); while(hist.size() > 0) { dir nextone = dir_error; switch(move) { case dir_error: nextone = dir_up; break; case dir_up: nextone = dir_down; break; case dir_down: nextone = dir_right; break; case dir_right: nextone = dir_left; break; case dir_left: nextone = dir_undo; break; default: cout << "Should never get here!!" << endl; } if (nextone == dir_undo) { if (hist.size() <= 1) break; facing = dir_error; move = dir_error; hist.pop_back(); continue; } move = nextone; if (validmove(nextone,0)) { dir temp = tilt(facing,nextone); hist.push_back(hist.back()+displacement); facing = temp; move = dir_error; if (solved()) { cout << "Found one!" << endl; drawgrid(); } } } cout << "Done!" << endl; break; } default: break; } if (tiltdir == dir_error) continue; if (tiltdir == dir_undo) { if (hist.size() <= 1) continue; facing = dir_error; hist.pop_back(); move = dir_error; drawgrid(); continue; } if (validmove(tiltdir,1)) { move = tiltdir; dir temp = tilt(facing,tiltdir); hist.push_back(hist.back()+displacement); facing = temp; } drawgrid(); } } I will put the commands used to find them in the title of the spoiler (or just listed if nothing was found with those commands). I'll also remove solutions that are reflections and/or rotations of other solutions when found during the same command, but I'll leave the duplicates found with different commands (but they'll be in different spoiler boxes anyway). Found one! _________________ |1=>=6=< >=6 6=<| | X X X|X|X|X|X|| |>=6=< < > ^=^ <| ||X X|X|X|X X X|| |> 6=< < > v=v <| ||X|X X|X|X|X|X|| |> ^ 6=< >=6 6 <| ||X|X|X X X X|X|| |> 1 ^=^=^=^=^ <| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Found one! _________________ |1=>=6=< >=6=<=1| | X X X|X|X X X | |>=6 6=< >=6 6=<| ||X|X|X X X|X|X|| |> ^=^ v=v ^=^ <| ||X X X|X|X X X|| |> >=6 6 6 6=< <| ||X|X|X|X|X|X|X|| |> > ^=^ ^=^ < <| ||X|X X X X X|X|| |> >=6=< >=6=< <| ||X X X|X|X X X|| |> v=v < > v=v <| ||X|X|X|X|X|X|X|| |>=6 6=< >=6 6=<| ----------------- Done! k,1,0: None for a 1 at (1,0). Found one! _________________ |v=v 1=> v=v=v=v| ||X|X X|X|X X X|| |6 6=< >=6 >=6 6| ||X X|X X X|X|X|| |^ 6=< 6=< > ^=^| ||X|X X|X|X|X X | |1 ^=^=^ < >=6=<| | X X X X|X X X|| |v=v=v=v < >=6=<| ||X X X|X|X|X X | |6=< >=6 < > v=v| | X|X|X X|X|X|X|| |6=< >=6=< >=6 6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Found one! _________________ |>=6 1=>=6 >=6=<| ||X|X X X|X|X X|| |> ^=^=^=^ >=6 <| ||X X X X X X|X|| |> >=6=< ^=^=^ <| ||X|X X|X|X X X|| |> > 6=< 1 6=< <| ||X|X|X X X|X|X|| |> > ^=^=^=^ < <| ||X|X X X X X|X|| |> >=6=< >=6=< <| ||X X X|X|X X X|| |> v=v < > v=v <| ||X|X|X|X|X|X|X|| |>=6 6=< >=6 6=<| ----------------- Done! Found one! _________________ |>=6=< 1=>=6 6=<| ||X X|X X X|X|X|| |> 6=< 6=< ^=^ <| ||X|X X|X|X X X|| |> ^=^=^ < >=6=<| ||X X X X|X|X X | |>=6=< 6=< >=6 1| | X X|X|X X X|X|| |>=6=< ^=^=^=^ v| ||X X X X X X X|| |> v=v=v v=v >=6| ||X|X X|X|X|X|X | |> 6=< 6 6 6 >=6| ||X X|X|X|X|X X|| |>=6=< ^=^ ^=^=^| ----------------- Found one! _________________ |>=6=< 1=>=6 6=<| ||X X|X X X|X|X|| |> 6=< 6=< ^=^ <| ||X|X X|X|X X X|| |> ^=^=^ < >=6=<| ||X X X X|X|X X | |>=6 6=< < >=6=<| | X|X|X|X|X X X|| |1 ^=^ < < >=6=<| ||X X X|X|X|X X | |v >=6=< < > v=v| ||X|X X X|X|X|X|| |6 >=6 6=< >=6 6| ||X X|X|X X X X|| |^=^=^ ^=^=^=^=^| ----------------- Found one! _________________ |>=6=< 1=>=6 6=<| ||X X|X X X|X|X|| |> 6=< 6=< ^=^ <| ||X|X X|X|X X X|| |> ^=^=^ < >=6=<| ||X X X X|X|X X | |>=6=<=1 < >=6=<| | X X X X|X X X|| |v=v=v=v < >=6=<| ||X X X|X|X|X X | |6=< >=6 < > v=v| | X|X|X X|X|X|X|| |6=< >=6=< >=6 6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Found one! _________________ |>=6=<=1 1=>=6=<| ||X X X X X X X|| |> v=v=v=v=v=v <| ||X|X X X X X|X|| |> 6 6=< >=6 6 <| ||X|X|X|X|X|X|X|| |> ^=^ < > ^=^ <| ||X X X|X|X X X|| |> >=6=< > >=6=<| ||X|X X X|X|X X | |> >=6=< > >=6=<| ||X X X|X|X X X|| |> v=v < > v=v <| ||X|X|X|X|X|X|X|| |>=6 6=< >=6 6=<| ----------------- Found one! _________________ |>=6=<=1 1=>=6=<| ||X X X X X X X|| |> v=v=v=v=v=v <| ||X|X X X X X|X|| |> 6 6=< >=6 6 <| ||X|X|X|X|X|X|X|| |> ^=^ < > ^=^ <| ||X X X|X|X X X|| |> >=6=< >=6=< <| ||X|X X X X X|X|| |> >=6=< >=6=< <| ||X X X|X|X X X|| |> v=v < > v=v <| ||X|X|X|X|X|X|X|| |>=6 6=< >=6 6=<| ----------------- Found one! _________________ |>=6=<=1 1=>=6=<| ||X X X X X X X|| |> v=v=v=v=v=v <| ||X|X X X X X|X|| |> 6 6=< >=6 6 <| ||X|X|X|X|X|X|X|| |> ^=^ < > ^=^ <| ||X X X|X|X X X|| |>=6=< < > >=6=<| | X X|X|X|X|X X | |>=6=< < > >=6=<| ||X X X|X|X X X|| |> v=v < > v=v <| ||X|X|X|X|X|X|X|| |>=6 6=< >=6 6=<| ----------------- Found one! _________________ |>=6=<=1 1=>=6=<| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |>=6 >=6 6=< 6=<| | X X|X X X|X X | |>=6 >=6 6=< 6=<| ||X|X X|X|X X|X|| |> ^=^=^ ^=^=^ <| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Found one! _________________ |>=6=<=1 >=6 6=<| ||X X X X|X|X|X|| |>=6 6=< > ^=^ <| | X|X|X|X|X X X|| |1 ^=^ < > v=v <| ||X X X|X|X|X|X|| |v=v 6=< >=6 6 <| | X|X|X X X X|X|| |>=6 ^=^=^=^=^ <| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Found one! _________________ |>=6=<=1 >=6 6=<| ||X X X X|X|X|X|| |>=6=< 1 > ^=^ <| | X X|X|X|X X X|| |>=6=< v > v=v <| ||X X X|X|X|X|X|| |>=6=< 6 >=6 6 <| | X X|X|X X X|X|| |>=6=< ^=^=^=^ <| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Done! Found one! _________________ |>=6=< v=v=v=v=v| ||X X|X|X X X X|| |> 1 < 6=< >=6 6| ||X|X|X X|X|X|X|| |> v < 1 < > ^=^| ||X|X|X|X|X|X X | |> 6=< v < >=6=<| ||X X X|X|X X X|| |>=6=< 6=< >=6=<| | X X|X X X|X X | |v=v < v=v > v=v| ||X|X|X|X|X|X|X|| |6 6=< 6 6 >=6 6| ||X X X|X|X X X|| |^=^=^=^ ^=^=^=^| ----------------- Done! Found one! _________________ |v=v=v=v=v=v=v=v| ||X X X X X X X|| |6=< 1=>=6=< >=6| | X|X X X X|X|X | |6=< 6=< 6=< >=6| ||X X|X|X|X X X|| |^=^=^ < ^=^=^=^| | X X X|X X X X | |v=v=v < v=v=v=v| ||X X|X|X|X X X|| |6=< 6=< 6=< >=6| | X|X X X X|X|X | |6=< 1=>=6=< >=6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Found one! _________________ |v=v=v=v v=v=v=v| ||X X X|X|X X X|| |6=<=1 6 6 >=6 6| | X X X|X|X|X|X|| |>=6=< ^=^ > ^=^| ||X X|X X X|X X | |> 6=< 6=< >=6=<| ||X|X X|X|X X X|| |> ^=^=^ < >=6=<| ||X X X X|X|X X | |> 1 v=v < > v=v| ||X|X|X|X|X|X|X|| |> v 6 6=< >=6 6| ||X|X|X X X X X|| |>=6 ^=^=^=^=^=^| ----------------- Found one! _________________ |v=v=v=v=v=v=v=v| ||X X X X X X X|| |6=<=1 v=v=v >=6| | X X X|X X|X|X | |>=6=< 6=< 6 >=6| ||X X|X X|X|X X|| |> 6=< 6=< ^=^=^| ||X|X X|X X X X | |> ^=^=^ 1=>=6=<| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Done! Found one! _________________ |>=6=<=1 >=6 6=<| ||X X X X|X|X|X|| |>=6=< 1 > ^=^ <| | X X|X|X|X X X|| |>=6=< v > v=v <| ||X X X|X|X|X|X|| |>=6=< 6 >=6 6 <| | X X|X|X X X|X|| |>=6=< ^=^=^=^ <| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Found one! _________________ |v=v=v=v=v=v=v 1| ||X X X X X X|X|| |6 6=< 1=>=6 6 v| ||X|X|X X X|X|X|| |^=^ < >=6 ^=^ 6| | X X|X|X|X X X|| |>=6=< > ^=^=^=^| ||X X X|X X X X | |>=6=< > v=v=v=v| | X X|X|X|X X X|| |v=v < > 6=< >=6| ||X|X|X|X X|X|X | |6 6=< >=6=< >=6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Found one! _________________ |v=v=v=v=v >=6=<| ||X X X X|X|X X|| |6 6=<=1 6 >=6 <| ||X|X X X|X X|X|| |^=^ v=v ^=^=^ <| | X X|X|X X X X|| |>=6 6 6 1=>=6 <| ||X|X|X|X X X|X|| |> ^=^ ^=^=^=^ <| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Done! k,2,2: None for a 1 at (2,2). Found one! _________________ |>=6=< v=v=v=v=v| ||X X|X|X X X X|| |> 1 < 6=< >=6 6| ||X|X|X X|X|X|X|| |> v < 1 < > ^=^| ||X|X|X|X|X|X X | |> 6=< v < >=6=<| ||X X X|X|X X X|| |>=6=< 6=< >=6=<| | X X|X X X|X X | |v=v < v=v > v=v| ||X|X|X|X|X|X|X|| |6 6=< 6 6 >=6 6| ||X X X|X|X X X|| |^=^=^=^ ^=^=^=^| ----------------- Done! Found one! _________________ |v=v=v=v >=6 6=<| ||X X X|X|X|X|X|| |6 6=< 6 > ^=^ <| ||X|X|X|X|X X X|| |^=^ < ^ > v=v <| | X X|X|X|X|X|X|| |1 6=< 1 >=6 6 <| ||X|X X X X X|X|| |v ^=^=^=^=^=^ <| ||X X X X X X X|| |6=< v=v v=v=v <| | X|X|X|X|X X|X|| |6=< 6 6 6 >=6 <| ||X X|X|X|X|X X|| |^=^=^ ^=^ >=6=<| ----------------- Found one! _________________ |v=v=v=v >=6 6=<| ||X X X|X|X|X|X|| |6 6=< 6 > ^=^ <| ||X|X|X|X|X X X|| |^=^ < ^ >=6=< <| | X X|X|X X X|X|| |>=6=< 1 >=6=< <| ||X X X X|X X X|| |>=6=< 1=> >=6=<| | X X|X X X|X X | |v=v < v=v > v=v| ||X|X|X|X|X|X|X|| |6 6=< 6 6 >=6 6| ||X X X|X|X X X|| |^=^=^=^ ^=^=^=^| ----------------- Found one! _________________ |v=v=v=v >=6 6=<| ||X X X|X|X|X|X|| |6 6=< 6 > ^=^ <| ||X|X|X|X|X X X|| |^=^ < ^ > >=6=<| | X X|X|X|X|X X | |>=6=< 1 > >=6=<| ||X X X X|X X X|| |>=6=< 1=> >=6=<| | X X|X X X|X X | |v=v < v=v > v=v| ||X|X|X|X|X|X|X|| |6 6=< 6 6 >=6 6| ||X X X|X|X X X|| |^=^=^=^ ^=^=^=^| ----------------- Found one! _________________ |v=v=v=v=v=v=v=v| ||X X X X X X X|| |6 6=< 6=< >=6 6| ||X|X|X|X|X|X|X|| |^=^ < ^ < > ^=^| | X X|X|X|X|X X | |>=6=< 1 < >=6=<| ||X X X X|X X X|| |> 1 >=6=< >=6=<| ||X|X|X X X|X X | |> v >=6=< > v=v| ||X|X X X|X|X|X|| |> 6=< 6=< >=6 6| ||X X|X|X X X X|| |>=6=< ^=^=^=^=^| ----------------- Found one! _________________ |v=v=v=v=v=v=v=v| ||X X X X X X X|| |6 6=< v=v=v >=6| ||X|X|X|X X|X|X | |^=^ < 6=< 6 >=6| | X X|X X|X|X X|| |6=< <=1 < ^=^=^| ||X|X X X|X X X | |^ < v=v < v=v=v| ||X|X|X|X|X|X X|| |1 < 6 6=< 6 >=6| | X|X|X X X|X|X | |6=< ^=^=^=^ >=6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Found one! _________________ |>=6=< v=v >=6=<| ||X X|X|X|X|X X|| |> 6=< 6 6 >=6 <| ||X|X X|X|X X|X|| |> ^=^=^ ^=^=^ <| ||X X X X X X X|| |>=6=<=1 v=v=v <| | X X X X|X X|X|| |v=v=v >=6 >=6 <| ||X X|X|X X|X X|| |6=< 6 >=6 >=6=<| | X|X|X X|X X X | |6=< ^=^=^ 1=>=6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Done! Well, that was interesting. There were quite a few solutions in general, and a few spots with none. Note: All reflections are shown twice by the code due to two directions to start moving. o,0,0,0: None for a 1 at (0,0). o,1,0,0: None for a 1 at (1,0). o,2,0,0: None for a 1 at (2,0). o,3,0,0: None for a 1 at (3,0). o,1,1,0: None for a 1 at (1,1). Two of them.Found one! _________________ |v=v=v=v=v >=6=<| ||X X X X|X|X X|| |6=<=1=> 6 >=6 <| | X X X|X|X X|X|| |>=6=< > ^=^=^ <| ||X X|X|X X X X|| |> 6=< >=6 >=6=<| ||X|X X X|X|X X | |> ^=^=^=^ >=6=<| ||X X X X X X X|| |> v=v=v v=v=v <| ||X|X X|X|X X|X|| |> 6=< 6 6 >=6 <| ||X X|X|X|X|X X|| |>=6=< ^=^ >=6=<| ----------------- Found one! _________________ |v=v=v=v=v=v=v=v| ||X X X X X X X|| |6=<=1 >=6=< >=6| | X X|X|X X|X|X | |v=v=v > 6=< >=6| ||X X X|X|X X X|| |6 6=< > ^=^=^=^| ||X|X|X|X X X X | |^=^ < > v=v=v=v| | X X|X|X|X X X|| |v=v < > 6=< >=6| ||X|X|X|X X|X|X | |6 6=< >=6=< >=6| ||X X X X X X X|| |^=^=^=^=^=^=^=^| ----------------- Done! o,3,1,0: None for a 1 at (3,1). o,2,2,0: None for a 1 at (2,2). o,3,2,0: None for a 1 at (3,2). o,3,3,0: None for a 1 at (3,3). It turns out that there is only one circuit (unique ignoring reflections and rotations) without any 1's. (found setting die in top left corner to point right (easy to show it cannot be anything but right or down and still complete a circuit)). _________________ |>=6=< v=v >=6=<| ||X X|X|X|X|X X|| |> 6=< 6 6 >=6 <| ||X|X X|X|X X|X|| |> ^=^=^ ^=^=^ <| ||X X X X X X X|| |> v=v=v=v=v=v <| ||X|X X X X X|X|| |> 6 6=< >=6 6 <| ||X|X|X|X|X|X|X|| |> ^=^ < > ^=^ <| ||X X X|X|X X X|| |> v=v < > v=v <| ||X|X|X|X|X|X|X|| |>=6 6=< >=6 6=<| ----------------- So there are 2 solutions (unique ignoring reflections and rotations) for a circuit containing one 1, and they both happen with the 1 a knights move from a corner. And there exists a single circuit (unique ignoring reflections and rotations) without a 1. I was thinking there would be more.
×
×
  • Create New...