Childhood exposure to pi generation algorithms; the correct version above was from memory.
Close enough! The wrong 7 jumped out at me instantly although I didn't remember more than a few after.