interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / mobius-function / wolfram.txt

13 lines · 1514 bytes Raw Blame History
1Wolfram cross-check of tasks/mobius-function/expected.txt
2tool: WolframLanguageEvaluator (Wolfram MCP, https://agenttools.wolfram.com/mcp), 2026-10-27
3The query builds the task's whole output text from Wolfram built-ins, independently of omc and
4of oracle.py, and returns {SHA-256 of that text, the text}. It agrees when that SHA-256 equals
5sha256(expected.txt) = 34e021d95a74264620cba845774562d76aecf6724ee94b22d21d58b1f8799a63.
6agreement: YES
7query:
8cell[0] = " "; cell[n_] := StringPadLeft[ToString[MoebiusMu[n]], 3];
9s = "first 199 terms of the Moebius sequence (the first cell, n = 0, is blank):\n" <>
10 StringJoin[Table[StringJoin[cell /@ Range[20 r, 20 r + 19]] <> "\n", {r, 0, 9}]];
11{Hash[s, "SHA256", "HexString"], s}
12result:
13Out[1]= {"34e021d95a74264620cba845774562d76aecf6724ee94b22d21d58b1f8799a63", "first 199 terms of the Moebius sequence (the first cell, n = 0, is blank):\n 1 -1 -1 0 -1 1 -1 0 0 1 -1 0 -1 1 1 0 -1 0 -1\n 0 1 1 -1 0 0 1 0 0 -1 -1 -1 0 1 1 1 0 -1 1 1\n 0 -1 -1 -1 0 0 1 -1 0 0 0 1 0 -1 0 1 0 1 1 -1\n 0 -1 1 0 0 1 -1 -1 0 1 -1 -1 0 -1 1 0 0 1 -1 -1\n 0 0 1 -1 0 1 1 1 0 -1 0 1 0 1 1 1 0 -1 0 0\n 0 -1 -1 -1 0 -1 1 -1 0 -1 -1 1 0 -1 -1 1 0 0 1 1\n 0 0 1 1 0 0 0 -1 0 1 -1 -1 0 1 1 0 0 -1 -1 -1\n 0 1 1 1 0 1 1 0 0 -1 0 -1 0 0 -1 1 0 -1 1 1\n 0 1 0 -1 0 -1 1 -1 0 0 -1 0 0 -1 -1 0 0 1 1 -1\n 0 -1 -1 1 0 1 -1 1 0 0 -1 -1 0 -1 1 -1 0 -1 0 -1\n"}