interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / van-eck-sequence / wolfram.txt

14 lines · 964 bytes Raw Blame History
1Wolfram cross-check of tasks/van-eck-sequence/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) = 6ac868c55af375dff6884e0129b20bb64266b9e904f2f0258fb56a4d03454b1d.
6agreement: YES
7query:
8next[l_] := Append[l, With[{p = Flatten[Position[Most[l], Last[l]]]}, If[p === {}, 0, Length[l] - Last[p]]]];
9a = Nest[next, {0}, 999];
10s = "terms 1 to 10: " <> StringRiffle[ToString /@ a[[1 ;; 10]], " "] <> "\n" <>
11 "terms 991 to 1000: " <> StringRiffle[ToString /@ a[[991 ;; 1000]], " "] <> "\n";
12{Hash[s, "SHA256", "HexString"], s}
13result:
14Out[1]= {"6ac868c55af375dff6884e0129b20bb64266b9e904f2f0258fb56a4d03454b1d", "terms 1 to 10: 0 0 1 0 2 0 2 2 1 6\nterms 991 to 1000: 4 7 30 25 67 225 488 0 10 136\n"}