tag:blogger.com,1999:blog-13306522.post8467141700914541331..comments2023-11-02T01:44:50.012-07:00Comments on Adventures of BruteForce: A Sequence RelationshipBrute Forcehttp://www.blogger.com/profile/10214183612902971524noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-13306522.post-54880131544315498872008-08-27T21:17:00.000-07:002008-08-27T21:17:00.000-07:00While there are a lot of 'answers' that could tie ...While there are a lot of 'answers' that could tie the two together, one of the simpler ones (and, the one that it actually was) is this: enumeration going from left-to-right as opposed to right-to-left.<BR/><BR/>Line up N people and give 4 of them hats. N happens to be 364, and you gave hats to persons 11, 25, 165, and 300 (enumerating based on 0, so we have individuals labeled from 0 to 363).<BR/><BR/>If you were to count going the other direction, but starting at 364 going to 1... the people with hats would be persons 64, 199, 339, and 353.<BR/><BR/>This might be considered an off-by-one error in addition to an orientation error. Anyway, just figured I'd post up the (non-unique, haha) solution.Brute Forcehttps://www.blogger.com/profile/10214183612902971524noreply@blogger.com