Solution: Refreshment Counter

Answer: GORDITA

Author: Violet Xiao

Upon initially opening this puzzle, solvers are presented with a banner saying “Congratulations! You are the (letters here)TH visitor to this website!”, some text describing the content below as “fun Fact or Fictions”, and a grid with 5 rows and 7 columns which has some squares filled with text.

Upon refreshing the page, some of the contents of the page will change. The banner on the top will have a different label of bolded letters, and the content filled in the grid below will likely be different. From refreshing the page several more times, the following can be deduced to a reasonable degree of certainty:

  • The bold letters in the top banner change on refresh.
  • The grid below is filled differently on refresh.
  • Within any given square of the grid, the same text should always appear (conditioned on any text appearing at all inside that square).
  • Some squares appear to be filled more often than others. In particular, one square seems to be always filled in with a label of FoF #I.
  • The bolded letters seem to be replacing numbers.

From here, progress comes in the form of:

  • Finding most or all of the FoFs and notating that data.
  • Figuring out the letter to number correspondence.
  • Understanding the rule(s) that determine which squares are filled.
  • Understanding that the FoFs are either true or false (“fact or fiction”) and that it needs to be determined which is which.

All the data of what appears in each square is given below:

FoF #IL: OSCAR is less than AB away from some perfect cube.FoF #NB: SOY is a smaller number than NAB.FoF #NL: SOAR is less than LOB away from some perfect fourth power.FoF #AA: This FoF's number is greater than any of the numbers of other FoFs in its column.FoF #IS: There exist two not necessarily distinct prime numbers whose sum is SCARY.FoF #L: LION is less than OR away from some perfect number.FoF #IA: The sum of FoF numbers in this row is equal to the sum of FoF numbers in the row immediately below.
FoF #AI: CANARY is prime.FoF #I: If this website is viewed ANY times per second starting from now, someone will be able to view a version of this page with all FoFs filled in within ICY years.FoF #NN: It is possible for this FoF to be the only one in its row to be filled in.FoF #AY: This FoF's number is greater than the number of any of its vertically, horizontally, or diagonally adjacent neighbors.FoF #IN: The FoF immediately to the left of this one is filled in less often than any other FoF in the grid is.FoF #II: On average, it takes less than NO views of this page to see each FoF in the grid filled in at least one time.FoF #NS: There exist two not necessarily distinct prime numbers whose sum is RASCAL.
FoF #C: The FoF immediately above this one is filled in less often than any other FoF in the grid is.FoF #R: This FoF is the only one in this column whose number is even.FoF #AB: Every view of this page with a grid that has this FoF filled in has at least S FoFs filled in.FoF #NA: Exactly C of this FoF's vertically, horizontally, or diagonally adjacent neighbors are true.FoF #IB: On average, it takes less than NIL views of this page to see each FoF in the grid filled in at least one time.FoF #NR: Every view of this page with a grid that has this FoF filled in has at least L FoFs filled in.FoF #NC: This FoF's number is greater than the number of any of its vertically or horizontally adjacent neighbors.
FoF #IR: The CABALth visitor to this website would see more FoF's filled on in on this page than the CAROLth visitor to this website would.FoF #A: In any grid with the FoF immediately below this one filled in, this FoF is also filled in.FoF #AN: This FoF is the only one in its row whose number is a multiple of L.FoF #AR: This FoF's number is a perfect square.FoF #S: It is possible to have a grid with both this FoF and the FoF immediately to the left of this FoF filled in.FoF #IO: The sum of all FoF numbers in this column is prime.FoF #NY: The sum of FoF numbers in this column is strictly smaller than any other column's sum of FoF numbers.
FoF #N: The sum of the numbers of all FoF's in the grid is CAB.FoF #NI: IS is a power of N.FoF #NO: This FoF's number is a power of A.FoF #Y: On average, it takes less than AN views of this page to see a grid with only one FoF filled in.FoF #IC: This FoF's number is a perfect cube.FoF #IY: The NOISYth visitor to this website would see exactly C FoF's filled in on this page.FoF #O: Out of all the other FoFs in the grid, at least half are true.

For understanding the letter to number correspondence, only the letters ABCILNORSY appear in bold. The puzzle title and banner text indicate that the number in the banner is describing some sort of view count (in fact, of the whole hunt website), and therefore it should only be increasing.

From this, we can find that each of these 10 letters are replacing a distinct (base-10) digit, and the correspondence, written from 0-9, is BINARYCOLS. (It is also possible to arrive at this conclusion by some sort of combination of guessing that the grid's FoF numbers are from 1 through 35, looking at some divisibility patterns in which FoFs appear with which, and guessing the string.)

The rule that governs which FoFs appear is: the FoF numbered [k] will appear if and only if [k] is a factor of the number that appears in the banner. This is also clued by the name “Fact or” Fiction.

With all of this in mind, it becomes possible to substitute all the bolded letters with numbers in the FoFs, and evaluate their truth values. Doing this yields

FoF #18: 79634 is less than 30 away from some perfect cube.FoF #20: 975 is a smaller number than 230.FoF #28: 9734 is less than 870 away from some perfect fourth power.FoF #33: This FoF's number is greater than any of the numbers of other FoFs in its column.FoF #19: There exist two not necessarily distinct prime numbers whose sum is 96345.FoF #8: 8172 is less than 74 away from some perfect number.FoF #13: The sum of FoF numbers in this row is equal to the sum of FoF numbers in the row immediately below.
FoF #31: 632345 is prime.FoF #1: If this website is viewed 325 times per second starting from now, someone will be able to view a version of this page with all FoFs filled in within 165 years.FoF #22: It is possible for this FoF to be the only one in its row to be filled in.FoF #35: This FoF's number is greater than the number of any of its vertically, horizontally, or diagonally adjacent neighbors.FoF #12: The FoF immediately to the left of this one is filled in less often than any other FoF in the grid is.FoF #11: On average, it takes less than 27 views of this page to see each FoF in the grid filled in at least one time.FoF #29: There exist two not necessarily distinct prime numbers whose sum is 439638.
FoF #6: The FoF immediately above this one is filled in less often than any other FoF in the grid is.FoF #4: This FoF is the only one in this column whose number is even.FoF #30: Every view of this page with a grid that has this FoF filled in has at least 9 FoFs filled in.FoF #23: Exactly 6 of this FoF's vertically, horizontally, or diagonally adjacent neighbors are true.FoF #10: On average, it takes less than 218 views of this page to see each FoF in the grid filled in at least one time.FoF #24: Every view of this page with a grid that has this FoF filled in has at least 8 FoFs filled in.FoF #26: This FoF's number is greater than the number of any of its vertically or horizontally adjacent neighbors.
FoF #14: The 63038th visitor to this website would see more FoF's filled on in on this page than the 63478th visitor to this website would.FoF #3: In any grid with the FoF immediately below this one filled in, this FoF is also filled in.FoF #32: This FoF is the only one in its row whose number is a multiple of 8.FoF #34: This FoF's number is a perfect square.FoF #9: It is possible to have a grid with both this FoF and the FoF immediately to the left of this FoF filled in.FoF #17: The sum of all FoF numbers in this column is prime.FoF #25: The sum of FoF numbers in this column is strictly smaller than any other column's sum of FoF numbers.
FoF #2: The sum of the numbers of all FoF's in the grid is 630.FoF #21: 19 is a power of 2.FoF #27: This FoF's number is a power of 3.FoF #5: On average, it takes less than 32 views of this page to see a grid with only one FoF filled in.FoF #16: This FoF's number is a perfect cube.FoF #15: The 27195th visitor to this website would see exactly 6 FoF's filled in on this page.FoF #7: Out of all the other FoFs in the grid, at least half are true.

Most of these are straightforward once you know the numbering system and the factor rule, but some perhaps more complicated ones are elaborated on further in the appendix.

As indicated by the number to letter mapping of BINARYCOLS, we take the truth value of these FoFs in each column and read down, using false as 0 and true as 1, to get seven 5-bit values. Converting these values gives 1, 2, 19, 9, 14, 20, 8, which with the standard A-Z as 1-26 mapping reads as ABSINTH, a (variant spelling of a) type of (alcoholic) spirit.

If the solver calls this answer in, they are urged to “Keep going!”. The final step is to draw inspiration from the banner at the top of the page and to suppose that you were the ABSINTH visitor to the website, or the 30912th visitor. We find that 30912 is equal to 2^6 * 3 * 7 * 23, and so it has a lot of factors from 1 through 35. These factors are 1, 2, 3, 4, 6, 7, 8, 12, 14, 16, 21, 23, 24, 28, and 32. If we were to see the page as that visitor, only the cells highlighted below would be filled in:

1820283319813
3112235121129
643023102426
143323491725
2212751657

Taking these cells that are filled in as 1s and the blank cells as 0s and again reading values as columns of binary gives us the final answer of GORDITA, a Mexican dish made with a stuffed tortilla.

Appendix

In this section, we go over some of the less straightforward FoFs.

FoF #19: There exist two not necessarily distinct prime numbers whose sum is [96345].FoF #29: There exist two not necessarily distinct prime numbers whose sum is [439638].

For the first of these, we note that two have two integers sum to an odd number, we need one of them to be even and one of them to be odd. Since the only even prime is 2, it suffices to check if 96345 - 2 = 96343 is prime or not. Since 96343 = 13 * 7411, it is not prime, and this FoF is false.

For the second of these, this FoF is a reference to Goldbach's conjecture. Though not known to be true, it has been verified to values up to 4 billion billion, so we can safely conclude that this FoF is true.

FoF #1: If this website is viewed [325] times per second starting from now, someone will be able to view a version of this page with all FoFs filled in within [165] years.

The first number which would cause all FoFs to be filled in is the least common multiple of all numbers from 1 through 35, or lcm(1, 2, …, 35) = 32 * 27 * 25 * 7 * 11 * 13 * 17 * 19 * 23 * 29 * 31 = 144403552893600 ≈ 1.44 * 10^14.

Using an estimate of 365.25 * 24 * 3600 seconds per year, and multiplying that by 325 visits per second and 165 years, we would have 1692276300000 ≈ 1.6 * 10^13 clicks, so that visit number would not yet have been reached. (Author’s note: should the counter ever reach 142711276593600, we will need to issue an errata.)

FoF #5: On average, it takes less than [32] views of this page to see a grid with only one FoF filled in.

For a page's number to cause only one FoF to be filled in, the number must be relatively prime to every prime below 35. Assuming a uniform distribution** modulo lcm(1, 2, …, 35), the probability for each prime can be calculated independently, and then all multiplied together. For any prime p, the counter has a (p-1)/p chance of being relatively prime to that number. Multiplying for each p < 35, we arrive at a probability of 1/2 * 2/3 * 4/5 * 6/7 * 10/11 * 12/13 * 16/17 * 18/19 * 22/23 * 28/29 * 30/31 ≈ 0.15285 that any given number will satisfy this property. It takes in expectation an average of 1/0.15285 ≈ 6.54 tries to get such a number.

FoF #11: On average, it takes less than [27] views of this page to see each FoF in the grid filled in at least one time.FoF #10: On average, it takes less than [218] views of this page to see each FoF in the grid filled in at least one time.

Again assuming a uniform distribution** modulo lcm(1, 2, …, 35), we can find by simulation that it takes around 35 trials to get 30 distinct FoFs, 53 to get 33 distinct FoFs, and around 93 to see all 35 FoFs, meaning the former of these FoFs is false and the latter is true.

We can also prove this average lies between the bounds with some bounding arguments. For the lower bound, since it takes an average of 35 trials to see FoF #35, it must take more than 27 trials to see everything.

For a handwavy upper bound, we first only consider the FoFs from 18 through 35, as if all of these are seen, then so must all the FoFs from 1 through 17. Note that for any FoF k, the probability that FoF hasn’t been seen within n trials is (1-1/k)^n. Choosing n=50, and summing over k from 18 through 35 we have an expected value of 2.627 unseen FoFs after 50 trials. (Wolfram Alpha) After these 50 trials, it should definitely take less than an average of 35+35+35 to find these remaining unseen FoFs, which will leave us well below the 218 upper bound.

**The author recognizes that the puzzle does not exactly make clear what the probability distribution on the counter ought to be, but thinks that anyone pedantic enough to notice that issue ought to be able to deduce the answer anyway. :)

Author’s Notes

I originally designed this puzzle for the intro round. In this initial version, the counter would count views only to that page (not the entire website), and it would be unlocked at the beginning of the hunt. For all teams. This would invite hunters to all DDoS our website at the same time right at the beginning of hunt. I was urged by several other members of our development team not to do this. As you can see, this did not end up happening, which was probably for the best.

This puzzle originally didn’t have the final ABSINTH step–that was something I happened to stumble upon while trying to make the extraction better than just reading off binary in the columns. It’s a bit of a minor miracle that it ends up working out.

Many many thanks to Max and Benji for working with me to find an answer that fits the constraints of the CTO meta and also the final extraction step of this puzzle. They ended up reworking a mechanic of the meta and replacing all of its answers, and I wound up with first dibs on an answer that worked for me. :)