domain stringclasses 8
values | topic stringclasses 159
values | difficulty stringclasses 3
values | question stringlengths 5 14.3k | solution_trace listlengths 1 29 | answer stringlengths 1 87.4k | verification stringlengths 51 1.69k | common_pitfall stringlengths 82 816 | id stringlengths 16 16 |
|---|---|---|---|---|---|---|---|---|
Programming | - | medium | Develop a Python function that checks if a string input is a valid hexadecimal color code. | [
"# Validating Hexadecimal Color Codes in Python",
"A valid hex color code follows the format `#RGB` (3 digits) or `#RRGGBB` (6 digits), where each character is a hexadecimal digit (`0-9`, `a-f`, `A-F`).",
"```python\nimport re",
"def is_valid_hex_color(color: str) -> bool:\n \"\"\"\n Check if a string i... | # Validating Hexadecimal Color Codes in Python
A valid hex color code follows the format `#RGB` (3 digits) or `#RRGGBB` (6 digits), where each character is a hexadecimal digit (`0-9`, `a-f`, `A-F`).
```python
import re
def is_valid_hex_color(color: str) -> bool:
"""
Check if a string is a valid hexadecimal c... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000901 |
Mathematics | Olympiads | medium | Given that \( x, y, z \) are all positive numbers, and \( x + y + z \geq xy + yz + zx \), prove:
$$
\frac{x}{yz} + \frac{y}{zx} + \frac{z}{xy} \geq \sqrt{3}.
$$ | [
"# Proof",
"## Substitution",
"Let $a = \\dfrac{1}{x},\\; b = \\dfrac{1}{y},\\; c = \\dfrac{1}{z}$, so that $a, b, c > 0$.",
"**Transforming the constraint.** The hypothesis $x+y+z \\ge xy+yz+zx$ becomes",
"$$\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c} \\;\\ge\\; \\frac{1}{ab}+\\frac{1}{bc}+\\frac{1}{ca}.$$",
... | # Proof
## Substitution
Let $a = \dfrac{1}{x},\; b = \dfrac{1}{y},\; c = \dfrac{1}{z}$, so that $a, b, c > 0$.
**Transforming the constraint.** The hypothesis $x+y+z \ge xy+yz+zx$ becomes
$$\frac{1}{a}+\frac{1}{b}+\frac{1}{c} \;\ge\; \frac{1}{ab}+\frac{1}{bc}+\frac{1}{ca}.$$
Multiplying both sides by $abc > 0$:
$... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000902 |
Science | - | hard | What isotopic fractionation mechanisms govern the coupled transport of uranium and lead in subduction zone fluids, and how can multi-proxy geochemical modeling resolve the timing of mantle wedge metasomatism? | [
"# Isotopic Fractionation of U and Pb in Subduction-Zone Fluids and Constraining Mantle-Wedge Metasomatism",
"## 1.",
"Governing Fractionation Mechanisms",
"### 1.1 Uranium: Redox- and Complexation-Driven Fractionation",
"Uranium is the more redox-sensitive of the two elements and undergoes the dominant equ... | # Isotopic Fractionation of U and Pb in Subduction-Zone Fluids and Constraining Mantle-Wedge Metasomatism
## 1. Governing Fractionation Mechanisms
### 1.1 Uranium: Redox- and Complexation-Driven Fractionation
Uranium is the more redox-sensitive of the two elements and undergoes the dominant equilibrium isotope effec... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000903 |
Programming | - | hard | You are tasked with implementing a simple image processing algorithm that converts a grayscale image into a colored ASCII art representation. The input grayscale image is represented as a 2D array of pixel values, where each value ranges from 0 to 255. The output colored ASCII art representation will be created by repl... | [
"# ASCII Art Converter",
"Looking at this problem, I need to:\n1.",
"Map each grayscale pixel value to the appropriate ASCII character based on the given ranges\n2.",
"Join the characters in each row\n3.",
"Join all rows with newline characters",
"Let me verify the mapping with the example input:\n- 100 →... | # ASCII Art Converter
Looking at this problem, I need to:
1. Map each grayscale pixel value to the appropriate ASCII character based on the given ranges
2. Join the characters in each row
3. Join all rows with newline characters
Let me verify the mapping with the example input:
- 100 → `#` (52-102), 150 → `%` (103-15... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000904 |
Mathematics | - | medium | Example 7 Two quadratic equations with unequal leading coefficients $(a-1) x^{2}-\left(a^{2}+2\right) x+\left(a^{2}+2 a\right)=0$, (1) and $(b-1) x^{2}-\left(b^{2}+2\right) x+\left(b^{2}+2 b\right)=0$ ( $a, b$ are positive integers) have a common root. Find the value of $\frac{a^{b}+b^{a}}{a^{-b}+b^{-a}}$. | [
"# Finding the Common Root and Evaluating the Expression",
"## Finding the Roots of Each Equation",
"**Equation (1):** $(a-1)x^2-(a^2+2)x+(a^2+2a)=0$",
"I test $x=a$:\n$$(a-1)a^2-(a^2+2)a+(a^2+2a)=a^3-a^2-a^3-2a+a^2+2a=0\\checkmark$$",
"By Vieta's formulas, the other root is:\n$$x=\\frac{a^2+2a}{(a-1)\\cdot... | # Finding the Common Root and Evaluating the Expression
## Finding the Roots of Each Equation
**Equation (1):** $(a-1)x^2-(a^2+2)x+(a^2+2a)=0$
I test $x=a$:
$$(a-1)a^2-(a^2+2)a+(a^2+2a)=a^3-a^2-a^3-2a+a^2+2a=0\checkmark$$
By Vieta's formulas, the other root is:
$$x=\frac{a^2+2a}{(a-1)\cdot a}=\frac{a(a+2)}{a(a-1)}=... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000905 |
Science | - | hard | What are the mechanistic pathways by which high‑entropy alloy nanograins undergo stress‑induced phase transformations, and how do these pathways affect their catalytic activity for CO₂ reduction under operando conditions? | [
"# Stress-Induced Phase Transformations in HEA Nanograins and Their Impact on CO₂-Reduction Catalysis",
"This question sits at the frontier where multiphase mechanics, electrochemistry, and surface science converge, and a large fraction of the specific nanoscale, operando mechanistic detail is still being resolve... | # Stress-Induced Phase Transformations in HEA Nanograins and Their Impact on CO₂-Reduction Catalysis
This question sits at the frontier where multiphase mechanics, electrochemistry, and surface science converge, and a large fraction of the specific nanoscale, operando mechanistic detail is still being resolved. What f... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000906 |
Mathematics | - | hard | Maximize the function \( f(a) = a e^{-a\sqrt{2r}} \int_0^\infty \exp\left(-{1 \over 2}x^2 - {{\lambda (a - S_0)^2} \over {\sigma^2}} {1 \over x^2} \right)dx \) over \( a > 0 \), where \( \lambda, \sigma, S_0 > 0 \) are constants. | [
"# Maximizing $f(a)$",
"## Step 1: Evaluate the Integral in Closed Form",
"The key integral has the form (with $c = \\frac{\\lambda(a-S_0)^2}{\\sigma^2}$):",
"$$I(c) = \\int_0^\\infty \\exp\\!\\left(-\\tfrac{x^2}{2} - \\tfrac{c}{x^2}\\right)dx.$$",
"Substituting $u = x^2/2$ gives $I(c) = \\frac{1}{\\sqrt{2}... | # Maximizing $f(a)$
## Step 1: Evaluate the Integral in Closed Form
The key integral has the form (with $c = \frac{\lambda(a-S_0)^2}{\sigma^2}$):
$$I(c) = \int_0^\infty \exp\!\left(-\tfrac{x^2}{2} - \tfrac{c}{x^2}\right)dx.$$
Substituting $u = x^2/2$ gives $I(c) = \frac{1}{\sqrt{2}}\int_0^\infty u^{-1/2}e^{-u\, -\,... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000907 |
Programming | - | hard | Build a React micro-frontend that renders a data visualization dashboard with Chart.js or D3. Make it fully responsive and accessible. Include at least one unit test. | [
"# React Micro-Frontend Data Visualization Dashboard",
"Below is a complete, production-shaped micro-frontend that:",
"- Exposes `mount`/`unmount` lifecycle hooks (works with qiankun, single-spa, or Module Federation)\n- Uses **Chart.js** (via `react-chartjs-2`) for responsive charts\n- Is **accessible**: keybo... | # React Micro-Frontend Data Visualization Dashboard
Below is a complete, production-shaped micro-frontend that:
- Exposes `mount`/`unmount` lifecycle hooks (works with qiankun, single-spa, or Module Federation)
- Uses **Chart.js** (via `react-chartjs-2`) for responsive charts
- Is **accessible**: keyboard-navigable, ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000908 |
Artificial Intelligence | Tracking Shuffled Objects Five Objects | easy | Alice, Bob, Claire, Dave, and Eve are dancers at a square dance. At the start of a song, they each have a partner: Alice is dancing with Sam, Bob is dancing with Izzi, Claire is dancing with Jamie, Dave is dancing with Ophelia, and Eve is dancing with Patrick.
Throughout the song, the dancers often trade partners. Firs... | [
"# Tracking the Partner Switches",
"Let me track each dancer's partner through every switch:",
"**Start:**\n- Alice – Sam\n- Bob – Izzi\n- Claire – Jamie\n- Dave – Ophelia\n- Eve – Patrick",
"**After Bob and Dave switch:**\n- Alice – Sam\n- Bob – Ophelia\n- Claire – Jamie\n- Dave – Izzi\n- Eve – Patrick",
"... | # Tracking the Partner Switches
Let me track each dancer's partner through every switch:
**Start:**
- Alice – Sam
- Bob – Izzi
- Claire – Jamie
- Dave – Ophelia
- Eve – Patrick
**After Bob and Dave switch:**
- Alice – Sam
- Bob – Ophelia
- Claire – Jamie
- Dave – Izzi
- Eve – Patrick
**After Alice and Eve switch:**... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000909 |
Science | - | hard | In what ways can the incorporation of topologically protected defect states in two-dimensional transition metal dichalcogenide heterostructures be engineered to achieve tunable exciton-polariton condensation at room temperature? | [
"# Engineering Topologically Protected Defect States for Tunable Room-Temperature Exciton-Polariton Condensation in 2D TMD Heterostructures",
"This question sits at the confluence of topological band physics, 2D quantum materials, and nonlinear nanophotonics.",
"Achieving room-temperature (RT) exciton-polariton... | # Engineering Topologically Protected Defect States for Tunable Room-Temperature Exciton-Polariton Condensation in 2D TMD Heterostructures
This question sits at the confluence of topological band physics, 2D quantum materials, and nonlinear nanophotonics. Achieving room-temperature (RT) exciton-polariton condensation ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000910 |
Mathematics | - | hard | Given a square matrix $A$ that is not a scalar multiple of the identity matrix $I$, determine whether there always exists an invertible matrix $B$ such that the element in the first row and first column of the matrix $BAB^{-1}$ is zero. | [
"# Existence of $B$ with $(BAB^{-1})_{11} = 0$",
"## Claim",
"**Yes.** For every $n \\times n$ matrix $A$ with $A \\neq \\lambda I$ for all $\\lambda$, there exists an invertible matrix $B$ such that $(BAB^{-1})_{11} = 0$.",
"*(The case $n=1$ is vacuous since every $1\\times 1$ matrix is a scalar multiple of ... | # Existence of $B$ with $(BAB^{-1})_{11} = 0$
## Claim
**Yes.** For every $n \times n$ matrix $A$ with $A \neq \lambda I$ for all $\lambda$, there exists an invertible matrix $B$ such that $(BAB^{-1})_{11} = 0$.
*(The case $n=1$ is vacuous since every $1\times 1$ matrix is a scalar multiple of $I$. So we work with $... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000911 |
Artificial Intelligence | Logic Puzzle | easy | If the day after tomorrow is three days before Wednesday, what day is today? | [
"**Today is Friday.**",
"Here's the reasoning:",
"1.",
"Three days before Wednesday is **Sunday**.\n2.",
"So \"the day after tomorrow\" = Sunday.\n3.",
"That means tomorrow is Saturday.\n4.",
"Therefore, today is **Friday**."
] | **Today is Friday.**
Here's the reasoning:
1. Three days before Wednesday is **Sunday**.
2. So "the day after tomorrow" = Sunday.
3. That means tomorrow is Saturday.
4. Therefore, today is **Friday**. | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000912 |
Science | - | hard | What are the mechanistic implications of allosteric modulation in a multi‑subunit ribosome when cryo‑EM reveals transient intermediate conformations, and how can integrative modeling quantify the free‑energy landscape governing peptide‑bond formation fidelity? | [
"# Allosteric Modulation, Cryo-EM Intermediates, and the Free-Energy Landscape of Peptidyl Transfer",
"## 1.",
"What Transient Cryo-EM Intermediates Actually Reveal About Allosteric Mechanism",
"### The ribosome as an allosteric network, not a binary switch",
"The 70 S (or 80 S) ribosome is not a rigid scaf... | # Allosteric Modulation, Cryo-EM Intermediates, and the Free-Energy Landscape of Peptidyl Transfer
## 1. What Transient Cryo-EM Intermediates Actually Reveal About Allosteric Mechanism
### The ribosome as an allosteric network, not a binary switch
The 70 S (or 80 S) ribosome is not a rigid scaffold that simply "open... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000913 |
Artificial Intelligence | Logic Puzzle | easy | I bought a box of 12 donuts and gave some to my friends. How many donuts do I have left? | [
"I'd love to help, but the problem doesn't give us enough information! You said you gave **\"some\"** donuts to your friends, but \"some\" isn't a specific number.",
"Without knowing exactly how many you gave away, all I can say is:",
"**Donuts left = 12 − (number you gave away)**",
"For example:\n- If you ga... | I'd love to help, but the problem doesn't give us enough information! You said you gave **"some"** donuts to your friends, but "some" isn't a specific number.
Without knowing exactly how many you gave away, all I can say is:
**Donuts left = 12 − (number you gave away)**
For example:
- If you gave away 3, you'd have ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000914 |
Programming | - | hard | In the intricate task of building a resilient serverless framework using Amazon Web Services' Lambda and API Gateway, I've stumbled upon initial obstacles. Could you provide a comprehensive, step-by-step guide for proficiently establishing a serverless environment with these tools, addressing potential challenges and t... | [
"# Building a Resilient Serverless Framework: AWS Lambda + API Gateway",
"## A Comprehensive Architectural Guide",
"---",
"## I.",
"Foundational Planning & Architecture Design",
"### 1.1 Defining the Functional Topology",
"Before writing a single line of code, you must model the system as a graph of fun... | # Building a Resilient Serverless Framework: AWS Lambda + API Gateway
## A Comprehensive Architectural Guide
---
## I. Foundational Planning & Architecture Design
### 1.1 Defining the Functional Topology
Before writing a single line of code, you must model the system as a graph of functions, each with a single, we... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000915 |
Artificial Intelligence | Logic Puzzle | easy | If I currently have 20 marbles and I gave 7 to you, how many marbles would I have right now? | [
"You would have **13** marbles.",
"20 − 7 = 13"
] | You would have **13** marbles.
20 − 7 = 13 | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000916 |
Programming | - | hard | Analyze the space complexity and discuss memory layout and cache performance implications of bubble sort on an input of size n=3,873,449. Provide a rigorous justification. | [
"# Space Complexity, Memory Layout, and Cache Analysis of Bubble Sort at n = 3,873,449",
"## 1.",
"Formal Space Complexity",
"Bubble sort is an **in-place** comparison sort.",
"Its algorithmic body consists of:",
"- Two (or three) integer loop counters (`i`, `j`, and optionally `k`).\n- One temporary vari... | # Space Complexity, Memory Layout, and Cache Analysis of Bubble Sort at n = 3,873,449
## 1. Formal Space Complexity
Bubble sort is an **in-place** comparison sort. Its algorithmic body consists of:
- Two (or three) integer loop counters (`i`, `j`, and optionally `k`).
- One temporary variable `temp` for the swap.
- ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000917 |
Mathematics | - | medium | Given the general term of the sequence $\left{a_{n}\right}$
$$
a_{n}=\frac{n x}{(x+1)(2 x+1) \cdots(n x+1)}\left(n \in \mathbf{Z}_{+}\right) \text {. }
$$
If $a_{1}+a_{2}+\cdots+a_{2015}<1$, then the value of the real number $x$ is $(\quad)$.
(A) $-\frac{3}{2}$
(B) $-\frac{5}{12}$
(C) $-\frac{9}{40}$
(D) $-\frac{11}{6... | [
"Looking at this problem, I need to evaluate the telescoping sum $\\sum_{n=1}^{2015} a_n$ where $a_n = \\frac{nx}{(x+1)(2x+1)\\cdots(nx+1)}$.",
"## Finding the Telescoping Structure",
"Let $P_n = (x+1)(2x+1)\\cdots(nx+1)$ with $P_0 = 1$.",
"Then $P_n = P_{n-1}\\cdot(nx+1)$, so:",
"$$\\frac{1}{P_{n-1}} - \\f... | Looking at this problem, I need to evaluate the telescoping sum $\sum_{n=1}^{2015} a_n$ where $a_n = \frac{nx}{(x+1)(2x+1)\cdots(nx+1)}$.
## Finding the Telescoping Structure
Let $P_n = (x+1)(2x+1)\cdots(nx+1)$ with $P_0 = 1$. Then $P_n = P_{n-1}\cdot(nx+1)$, so:
$$\frac{1}{P_{n-1}} - \frac{1}{P_n} = \frac{P_n - P_{... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000918 |
Programming | - | hard | While dealing with a 'Maximum Retry Attempts Reached' issue during my AWS DynamoDB implementation, could you meticulously craft a comprehensive manual that outlines the exact creation and management of a NoSQL database using AWS DynamoDB? This manual should ensure peak performance and reduce errors, focusing on systema... | [
"# AWS DynamoDB: Comprehensive Implementation & Operations Manual",
"## A Layered Analytical Framework for Peak Performance, Systematic Debugging, and Error Resolution",
"---",
"## Table of Contents",
"1. [Architectural Foundations & Underlying Structure](#1)\n2. [Database Creation & Configuration](#2)\n3. ... | # AWS DynamoDB: Comprehensive Implementation & Operations Manual
## A Layered Analytical Framework for Peak Performance, Systematic Debugging, and Error Resolution
---
## Table of Contents
1. [Architectural Foundations & Underlying Structure](#1)
2. [Database Creation & Configuration](#2)
3. [Performance Architectu... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000919 |
Programming | Python | easy | You are given a grid with 2 rows and 3 columns of squares.
The color of the square at the i-th row and j-th column is represented by the character C_{ij}.
Write a program that prints YES if this grid remains the same when rotated 180 degrees, and prints NO otherwise.
-----Constraints-----
- C_{i,j}(1 \leq i \leq 2, 1... | [
"Looking at this problem, I need to check if a 2×3 grid is unchanged after a 180° rotation.",
"**Understanding 180° rotation of a 2×3 grid:**",
"Original:\n```\nC11 C12 C13\nC21 C22 C23\n```",
"After 180° rotation:\n```\nC23 C22 C21\nC13 C12 C11\n```",
"So the grid is unchanged if and only if:\n- C₁₁ = C₂₃\... | Looking at this problem, I need to check if a 2×3 grid is unchanged after a 180° rotation.
**Understanding 180° rotation of a 2×3 grid:**
Original:
```
C11 C12 C13
C21 C22 C23
```
After 180° rotation:
```
C23 C22 C21
C13 C12 C11
```
So the grid is unchanged if and only if:
- C₁₁ = C₂₃
- C₁₂ = C₂₂
- C₁₃ = C₂₁
**Ver... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000920 |
Mathematics | - | hard | Solve the equation in $\mathbb{Z}^{+}$:
\[ x^2 + y^7 - z^3 = 2017 \] | [
"# Solving $x^2 + y^7 - z^3 = 2017$ in $\\mathbb{Z}^+$",
"## Strategy: Isolate $x^2$ and search systematically",
"Rearranging:\n$$x^2 = z^3 + 2017 - y^7$$",
"For each candidate $y$, the right-hand side must be a **positive perfect square**.",
"I'll check small values of $y$.",
"## Checking $y = 1$: $\\;x^... | # Solving $x^2 + y^7 - z^3 = 2017$ in $\mathbb{Z}^+$
## Strategy: Isolate $x^2$ and search systematically
Rearranging:
$$x^2 = z^3 + 2017 - y^7$$
For each candidate $y$, the right-hand side must be a **positive perfect square**. I'll check small values of $y$.
## Checking $y = 1$: $\;x^2 = z^3 + 2016$
Testing $z =... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000921 |
Programming | - | hard | Build a fully playable Whack-a-Mole game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: random hole selection with randomized visible duration; final score screen with high score tracking via localStorage; 9-hole grid with CSS-animated mole pop-up from each hol... | [
"# Whack-a-Mole — Complete Single-File Implementation",
"Save this as `index.html` and open it in any modern browser.",
"Everything (state, rendering, input) is separated into clearly-marked concerns, and the game loop runs on `requestAnimationFrame`.",
"```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<... | # Whack-a-Mole — Complete Single-File Implementation
Save this as `index.html` and open it in any modern browser. Everything (state, rendering, input) is separated into clearly-marked concerns, and the game loop runs on `requestAnimationFrame`.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000922 |
Mathematics | - | hard | Consider the polynomial $ f(x) \equal{} ax^2 \plus{} bx \plus{} c$, with degree less than or equal to 2.
When $ f$ varies with subject to the constrain $ f(0) \equal{} 0,\f(2) \equal{} 2$, find the minimum value of $ S\equal{}\int_0^2 |f'(x)|\dx$. | [
"# Minimizing $S = \\int_0^2 |f'(x)|\\,dx$",
"## Setting Up the Family of Polynomials",
"From the constraints:\n- $f(0) = c = 0$\n- $f(2) = 4a + 2b = 2 \\implies b = 1 - 2a$",
"So every admissible polynomial has the form:\n$$f(x) = ax^2 + (1-2a)x, \\qquad f'(x) = 2ax + (1-2a)$$",
"Since $f'(x)$ is **linear*... | # Minimizing $S = \int_0^2 |f'(x)|\,dx$
## Setting Up the Family of Polynomials
From the constraints:
- $f(0) = c = 0$
- $f(2) = 4a + 2b = 2 \implies b = 1 - 2a$
So every admissible polynomial has the form:
$$f(x) = ax^2 + (1-2a)x, \qquad f'(x) = 2ax + (1-2a)$$
Since $f'(x)$ is **linear**, its sign can change at mo... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000923 |
Artificial Intelligence | Logic Puzzle | easy | I have a 10-gallon tank of 10% alcohol solution. I pour out 5 gallons and replace it with 5 gallons of pure alcohol. What is the final percentage of alcohol in the tank? | [
"## Step-by-Step Solution",
"**Start:** 10 gallons of 10% alcohol solution\n- Alcohol: 10 × 0.10 = **1 gallon**\n- Water: 10 × 0.90 = **9 gallons**",
"**Pour out 5 gallons** (the mixture is uniform, so you remove half of everything):\n- Alcohol removed: 5 × 0.10 = 0.5 gal → **0.5 gal alcohol remains**\n- Water ... | ## Step-by-Step Solution
**Start:** 10 gallons of 10% alcohol solution
- Alcohol: 10 × 0.10 = **1 gallon**
- Water: 10 × 0.90 = **9 gallons**
**Pour out 5 gallons** (the mixture is uniform, so you remove half of everything):
- Alcohol removed: 5 × 0.10 = 0.5 gal → **0.5 gal alcohol remains**
- Water removed: 5 × 0.90... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000924 |
Science | - | hard | In a topologically protected quantum error‑correcting code, what are the necessary and sufficient conditions on the subsystem symmetries and measurement operators to achieve fault‑tolerance against correlated dephasing noise across a two‑dimensional lattice of superconducting qubits? | [
"# Fault-Tolerance of 2D Topological Codes Against Correlated Dephasing: Structural Conditions",
"## Preliminary Caveat",
"There is no single theorem in the literature that packages \"necessary and sufficient conditions on subsystem symmetries and measurement operators\" into one clean statement for this exact ... | # Fault-Tolerance of 2D Topological Codes Against Correlated Dephasing: Structural Conditions
## Preliminary Caveat
There is no single theorem in the literature that packages "necessary and sufficient conditions on subsystem symmetries and measurement operators" into one clean statement for this exact composite quest... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000925 |
Artificial Intelligence | Logic Puzzle | easy | Which has more 's's: the word 'assess' or the word 'success'? | [
"The word **assess** has more s's.",
"- **assess**: a-**s**-**s**-e-**s**-**s** → 4 s's\n- **success**: **s**-u-c-c-e-**s**-**s** → 3 s's"
] | The word **assess** has more s's.
- **assess**: a-**s**-**s**-e-**s**-**s** → 4 s's
- **success**: **s**-u-c-c-e-**s**-**s** → 3 s's | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000926 |
Science | - | hard | Within the context of the AdS/CFT correspondence, how does the inclusion of higher‑derivative curvature corrections in the bulk gravitational action affect the scaling dimensions of boundary operators associated with strongly coupled superconductors, and what constraints does this impose on the dual field theory's phas... | [
"# Higher-Derivative Corrections, Operator Scaling, and the Holographic Superconductor Phase Diagram",
"## 1.",
"The Baseline: Holographic Superconductors in Einstein Gravity",
"In the standard holographic superconductor construction (Hartnoll, Herzog, Horowitz, 2008), a U(1)-charged scalar $\\Phi$ of bulk ma... | # Higher-Derivative Corrections, Operator Scaling, and the Holographic Superconductor Phase Diagram
## 1. The Baseline: Holographic Superconductors in Einstein Gravity
In the standard holographic superconductor construction (Hartnoll, Herzog, Horowitz, 2008), a U(1)-charged scalar $\Phi$ of bulk mass $m$ and charge $... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000927 |
Science | - | hard | In a high‑luminosity proton–proton collider, what are the theoretical constraints on detecting sub‑TeV dark sector particles through displaced vertex signatures when incorporating next‑to‑leading order electroweak corrections and parton shower uncertainties? | [
"# Theoretical Constraints on Displaced-Vertex Detection of Sub-TeV Dark Sector Particles at a High-Luminosity pp Collider",
"This question sits at the intersection of BSM phenomenology, precision electroweak theory, and detector-level simulation.",
"I will organise the answer around the distinct layers of theo... | # Theoretical Constraints on Displaced-Vertex Detection of Sub-TeV Dark Sector Particles at a High-Luminosity pp Collider
This question sits at the intersection of BSM phenomenology, precision electroweak theory, and detector-level simulation. I will organise the answer around the distinct layers of theoretical uncert... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000928 |
Programming | - | hard | Alice and Bob play the following game. Alice has a set S of disjoint ranges of integers, initially containing only one range [1, n]. In one turn, Alice picks a range [l, r] from the set S and asks Bob to pick a number in the range. Bob chooses a number d (l ≤ d ≤ r). Then Alice removes [l, r] from S and puts into the s... | [
"Looking at this problem, I need to reconstruct the binary tree of ranges and determine what number Bob picked at each step.",
"**Key Insight:** The ranges form a binary tree where:\n- Root is always `[1, n]`\n- If Bob picks `d` in range `[l, r]`, the children are `[l, d-1]` and `[d+1, r]`\n- A left child has the... | Looking at this problem, I need to reconstruct the binary tree of ranges and determine what number Bob picked at each step.
**Key Insight:** The ranges form a binary tree where:
- Root is always `[1, n]`
- If Bob picks `d` in range `[l, r]`, the children are `[l, d-1]` and `[d+1, r]`
- A left child has the same `l` as... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000929 |
Mathematics | - | hard | In a $3 \times 3$ table, 9 numbers are arranged such that the six products of these numbers in the rows and columns of the table are all different. What is the maximum number of these numbers that can equal one? | [
"# Maximum Number of Ones in a 3×3 Table with Distinct Row and Column Products",
"## Setting Up the Problem",
"I'll denote the table entries as $a_{ij}$ and require that the three row products $R_i$ and three column products $C_j$ are all **pairwise distinct**.",
"## Eliminating 7, 8, or 9 Ones",
"| # of 1'... | # Maximum Number of Ones in a 3×3 Table with Distinct Row and Column Products
## Setting Up the Problem
I'll denote the table entries as $a_{ij}$ and require that the three row products $R_i$ and three column products $C_j$ are all **pairwise distinct**.
## Eliminating 7, 8, or 9 Ones
| # of 1's | Why it fails |
|-... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000930 |
Programming | - | medium | Given a really large number N, break it into 3 whole numbers such that they sum up to the original number and find the number of ways to do so. Since this number can be very large, return it modulo 10^{9}+7. Example 1: Input: N = 2 Output: 6 Explanation: Possible ways to break the number: 0 + 0 + 2 = 2 0 + 2 + 0 = 2 2 ... | [
"```python\nclass Solution:\n def waysToBreakNumber(self, N: int) -> int:\n MOD = 10**9 + 7\n inv2 = (MOD + 1) // 2",
"return ((N + 1) % MOD) * ((N + 2) % MOD) % MOD * inv2 % MOD\n```"
] | ```python
class Solution:
def waysToBreakNumber(self, N: int) -> int:
MOD = 10**9 + 7
inv2 = (MOD + 1) // 2
return ((N + 1) % MOD) * ((N + 2) % MOD) % MOD * inv2 % MOD
``` | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000931 |
Programming | - | hard | Build a fully playable Connect Four game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: score tracker across multiple rounds; column-hover highlight showing where a disc will land; 7×6 grid rendered with CSS for two-player disc dropping; win detection for horiz... | [
"# Connect Four — Pure HTML/CSS/JS",
"Save this as a single `index.html` file and open it in a browser.",
"It's fully self-contained, with game state, rendering, and input handled in separate sections.",
"```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" c... | # Connect Four — Pure HTML/CSS/JS
Save this as a single `index.html` file and open it in a browser. It's fully self-contained, with game state, rendering, and input handled in separate sections.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, i... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000932 |
Programming | - | hard | Build a complete, single-page recipe and food blog website using only HTML, CSS, and vanilla JavaScript (no frameworks). The design should be elegant and professional. Include: lazy-loading images using the loading='lazy' attribute; sticky navigation bar with smooth-scroll anchor links; testimonials slider/carousel bui... | [
"# Savory & Sage — Recipe & Food Blog",
"A complete single-file website.",
"Save as `index.html` and open in any browser — no build step, no dependencies.",
"```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"light\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-... | # Savory & Sage — Recipe & Food Blog
A complete single-file website. Save as `index.html` and open in any browser — no build step, no dependencies.
```html
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<me... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000933 |
Artificial Intelligence | Logic Puzzle | easy | I have a box of 12 cookies and I ate some. What is the maximum number of cookies I could possibly have remaining? | [
"## Answer: **11**",
"The key word is **\"some.\"** In standard English, \"some\" means **at least one** (but not all).",
"So the minimum number of cookies you could have eaten is **1**.",
"To find the **maximum** number remaining, you subtract the **minimum** eaten:",
"$$12 - 1 = \\boxed{11}$$"
] | ## Answer: **11**
The key word is **"some."** In standard English, "some" means **at least one** (but not all). So the minimum number of cookies you could have eaten is **1**.
To find the **maximum** number remaining, you subtract the **minimum** eaten:
$$12 - 1 = \boxed{11}$$ | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000934 |
Science | - | hard | What constraints can be placed on the flavor structure of a hypothesized sterile neutrino sector by combining precision measurements of neutrinoless double beta decay rates with cosmological large‑scale structure observations? | [
"# Joint Constraints on Sterile-Neutrino Flavor Structure from 0νββ and Cosmological LSS",
"## 1.",
"Defining the flavor structure to be constrained",
"In a $(3+n)$-flavour framework the lepton mixing matrix is an extended unitary matrix $\\mathcal{U}$.",
"The sub-block of interest is the $3\\times n$ activ... | # Joint Constraints on Sterile-Neutrino Flavor Structure from 0νββ and Cosmological LSS
## 1. Defining the flavor structure to be constrained
In a $(3+n)$-flavour framework the lepton mixing matrix is an extended unitary matrix $\mathcal{U}$. The sub-block of interest is the $3\times n$ active–sterile coupling block
... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000935 |
Programming | Cpp | easy | A string of length 6 consisting of lowercase English letters is said to be coffee-like if and only if its 3-rd and 4-th characters are equal and its 5-th and 6-th characters are also equal.
Given a string S, determine whether it is coffee-like.
-----Constraints-----
- S is a string of length 6 consisting of lowercas... | [
"## Solution",
"The problem asks us to check two conditions on a 6-character string:\n- Characters at positions 3 and 4 (1-indexed) are equal → `S[2] == S[3]`\n- Characters at positions 5 and 6 (1-indexed) are equal → `S[4] == S[5]`",
"If **both** conditions hold, print \"Yes\"; otherwise, print \"No\".",
"##... | ## Solution
The problem asks us to check two conditions on a 6-character string:
- Characters at positions 3 and 4 (1-indexed) are equal → `S[2] == S[3]`
- Characters at positions 5 and 6 (1-indexed) are equal → `S[4] == S[5]`
If **both** conditions hold, print "Yes"; otherwise, print "No".
### Code (Python)
```pyt... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000936 |
Programming | - | hard | Catalogue various nomenclature conventions linked with tables nested within a PostgreSQL-powered relational database management architecture, an extensively renowned open-source database framework, while considering multiple aspect like case sensitivity, special character handling, length and scope limitations, and pos... | [
"# Naming Conventions for Tables in PostgreSQL — A Comprehensive Catalogue",
"---",
"## 1.",
"Fundamental Identifier Rules",
"PostgreSQL tables are identified by **identifiers** (or, more precisely, by the pair `schema_name.table_name`, optionally prefixed by `database_name.schema_name.table_name`).",
"Th... | # Naming Conventions for Tables in PostgreSQL — A Comprehensive Catalogue
---
## 1. Fundamental Identifier Rules
PostgreSQL tables are identified by **identifiers** (or, more precisely, by the pair `schema_name.table_name`, optionally prefixed by `database_name.schema_name.table_name`). The governing rules are defin... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000937 |
Programming | Python | hard | Appleman and Toastman play a game. Initially Appleman gives one group of n numbers to the Toastman, then they start to complete the following tasks: Each time Toastman gets a group of numbers, he sums up all the numbers and adds this sum to the score. Then he gives the group to the Appleman. Each time Appleman gets a... | [
"# Appleman and Toastman - Maximizing the Score",
"## Key Insight",
"The game forms a **binary tree** where leaves are the original numbers and internal nodes are splits.",
"The score equals the sum of all node values.",
"A number `a_i` at depth `d_i` contributes `a_i × (d_i + 1)` to the score.",
"To **ma... | # Appleman and Toastman - Maximizing the Score
## Key Insight
The game forms a **binary tree** where leaves are the original numbers and internal nodes are splits. The score equals the sum of all node values. A number `a_i` at depth `d_i` contributes `a_i × (d_i + 1)` to the score.
To **maximize** the weighted exter... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000938 |
Artificial Intelligence | Logic Puzzle | easy | A hiker is facing North and their shadow is pointing directly to their right. In which direction is the sun? | [
"## The Sun is in the **West**.",
"Here's the reasoning:",
"1. **Facing North**, the hiker's right side points **East**.\n2.",
"The shadow is pointing to their right → the shadow points **East**.\n3.",
"A shadow always points **away from** the light source.",
"So if the shadow stretches East, the sun must... | ## The Sun is in the **West**.
Here's the reasoning:
1. **Facing North**, the hiker's right side points **East**.
2. The shadow is pointing to their right → the shadow points **East**.
3. A shadow always points **away from** the light source. So if the shadow stretches East, the sun must be illuminating from the **op... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000939 |
Mathematics | Olympiads | easy | If Alex does not sing on Saturday, then she has a 70% chance of singing on Sunday; however, to rest her voice, she never sings on both days. If Alex has a 50% chance of singing on Sunday, find the probability that she sings on Saturday. | [
"# Finding the Probability Alex Sings on Saturday",
"## Setting Up the Events",
"Let me define:\n- $S$: Alex sings on Saturday\n- $U$: Alex sings on Sunday",
"**Given information:**",
"| Condition | Probability |\n|---|---|\n| $P(U \\mid S^c) = 0.70$ | 70% chance of Sunday if *not* Saturday |\n| $P(S \\cap ... | # Finding the Probability Alex Sings on Saturday
## Setting Up the Events
Let me define:
- $S$: Alex sings on Saturday
- $U$: Alex sings on Sunday
**Given information:**
| Condition | Probability |
|---|---|
| $P(U \mid S^c) = 0.70$ | 70% chance of Sunday if *not* Saturday |
| $P(S \cap U) = 0$ | She never sings on... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000940 |
Science | - | hard | In multiscale molecular dynamics simulations of ribosomal RNA folding, how does the incorporation of quantum‑derived force fields for metal‑ion coordination affect predicted free‑energy landscapes compared to classical force fields? | [
"# Quantum-Derived vs.",
"Classical Force Fields for Metal-Ion Coordination in rRNA Folding MD",
"## 1.",
"Why the Question Is Non-Trivial",
"Ribosomal RNA (16S, 23S, 5S) folds into a hierarchically nested architecture of stem-loops, pseudoknots, and long-range tertiary contacts (A-minor motifs, kissing loo... | # Quantum-Derived vs. Classical Force Fields for Metal-Ion Coordination in rRNA Folding MD
## 1. Why the Question Is Non-Trivial
Ribosomal RNA (16S, 23S, 5S) folds into a hierarchically nested architecture of stem-loops, pseudoknots, and long-range tertiary contacts (A-minor motifs, kissing loops, G-quartets, P-loops... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000941 |
Programming | - | medium | On the eve of Teddy Day Chotu decided to buy a teddy for his girlfriend Choti. He has N coins each having distinct value from 1 to N. Now after collecting all the coins he went to buy a Teddy. Now the shopkeeper Motu told Chotu that there is only one Teddy in the shop of Value K. As Chotu is very bhondu(idiot) he wonde... | [
"Looking at this problem, I need to determine if K can be formed as a subset sum of coins {1, 2, 3, ..., N}.",
"**Key Insight:** With coins 1, 2, 3, ..., N, we can form **every** integer from 1 to N*(N+1)/2.",
"**Proof by induction:** \n- With coin {1}, we can form all values 1 to 1.\n- If we can form all value... | Looking at this problem, I need to determine if K can be formed as a subset sum of coins {1, 2, 3, ..., N}.
**Key Insight:** With coins 1, 2, 3, ..., N, we can form **every** integer from 1 to N*(N+1)/2.
**Proof by induction:**
- With coin {1}, we can form all values 1 to 1.
- If we can form all values 1 to S using ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000942 |
Mathematics | Olympiads | hard | Trapezoid \(ABCD\) with base \(AD\) is divided by diagonal \(AC\) into two triangles. A line \(l\), parallel to the base, divides these triangles into two triangles and two quadrilaterals. At what position of line \(l\) is the sum of the areas of the resulting triangles minimized? | [
"# Minimizing the Sum of Triangle Areas in a Trapezoid",
"## Setting Up the Configuration",
"Place the trapezoid in coordinates with the base $AD$ on the $x$-axis:",
"$$A=(0,0),\\quad D=(d,0),\\quad B=(b,h),\\quad C=(c,h),$$",
"where $d=AD$ (lower base), $L=|c-b|=BC$ (upper base), and $h$ is the altitude.",... | # Minimizing the Sum of Triangle Areas in a Trapezoid
## Setting Up the Configuration
Place the trapezoid in coordinates with the base $AD$ on the $x$-axis:
$$A=(0,0),\quad D=(d,0),\quad B=(b,h),\quad C=(c,h),$$
where $d=AD$ (lower base), $L=|c-b|=BC$ (upper base), and $h$ is the altitude.
The diagonal $AC$ splits... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000943 |
Programming | - | medium | Create a Python function that generates a random number between two specified numbers. However, the function should throw an exception if the lower bound is greater than or equal to the upper bound. The function should also check if the generated number is divisible by 3, and if not, keep generating random numbers unti... | [
"# Random Divisible Number Generator",
"Here's the Python function that meets all the specified requirements:",
"```python\nimport random",
"def generate_random_divisible(lower_bound, upper_bound):\n \"\"\"\n Generates a random number between lower_bound and upper_bound (inclusive)\n that is divisibl... | # Random Divisible Number Generator
Here's the Python function that meets all the specified requirements:
```python
import random
def generate_random_divisible(lower_bound, upper_bound):
"""
Generates a random number between lower_bound and upper_bound (inclusive)
that is divisible by 3.
Args:
... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000944 |
Programming | - | medium | Create a function to check if a string contains only unique characters. Write corresponding code in Python. string = "Programming" | [
"# Check for Unique Characters in a String",
"## Solution",
"```python\ndef has_unique_characters(s):\n \"\"\"\n Check if a string contains only unique characters.",
"Args:\n s (str): The input string to check.",
"Returns:\n bool: True if all characters are unique, False otherwise.\n ... | # Check for Unique Characters in a String
## Solution
```python
def has_unique_characters(s):
"""
Check if a string contains only unique characters.
Args:
s (str): The input string to check.
Returns:
bool: True if all characters are unique, False otherwise.
"""
# ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000945 |
Programming | Python | hard | Vasya has n items lying in a line. The items are consecutively numbered by numbers from 1 to n in such a way that the leftmost item has number 1, the rightmost item has number n. Each item has a weight, the i-th item weights w_{i} kilograms.
Vasya needs to collect all these items, however he won't do it by himself. He... | [
"Looking at this problem, I need to figure out the minimum energy for a robot taking items from left/right ends.",
"**Key Insight:** If we decide to take `k` items from the left and `m = n - k` from the right, the base cost is fixed (depends only on which items go to which hand).",
"The variable part is the **p... | Looking at this problem, I need to figure out the minimum energy for a robot taking items from left/right ends.
**Key Insight:** If we decide to take `k` items from the left and `m = n - k` from the right, the base cost is fixed (depends only on which items go to which hand). The variable part is the **penalty** for c... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000946 |
Mathematics | Synthetic Amc | hard | Six coins are picked out of a purse that contains primarily nickels, dimes, and half-dollars. Which of the following could not be the total value of the six coins, in cents?
$\textbf{(A)}\ 40 \qquad \textbf{(B)}\ 60 \qquad \textbf{(C)}\ 80 \qquad \textbf{(D)}\ 90 \qquad \textbf{(E)}\ 120$
- $\textbf{(A)}\ 40$
- $\textb... | [
"Looking at this problem, I need to find which value **cannot** be formed by exactly 6 coins, each worth 5¢, 10¢, or 50¢.",
"## Setting Up the Equation",
"Let $n$, $d$, $h$ be the number of nickels, dimes, and half-dollars:",
"$$n + d + h = 6 \\qquad \\text{and} \\qquad 5n + 10d + 50h = V$$",
"Substituting ... | Looking at this problem, I need to find which value **cannot** be formed by exactly 6 coins, each worth 5¢, 10¢, or 50¢.
## Setting Up the Equation
Let $n$, $d$, $h$ be the number of nickels, dimes, and half-dollars:
$$n + d + h = 6 \qquad \text{and} \qquad 5n + 10d + 50h = V$$
Substituting $n = 6 - d - h$:
$$V = ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000947 |
Science | Optics | hard | Give a description, including the physical principles involved, of the following optical systems:\n\n(a) A lens or mirror arrangement for converting a 10 cm diameter spherical 1000 candle-power light-source into a \(10^6\) beam candle-power search light. (Neglect lens or mirror light absorption.)\n\n(b) An instrument c... | [
"# Optical Systems: Description and Physical Principles",
"---",
"## (a) Search Light: 1000 cp Spherical Source → 10⁶ cp Beam",
"### Radiometric Budget",
"The 10 cm-diameter spherical source emits 1000 cd uniformly in every direction, giving a total luminous flux",
"$$\\Phi = 4\\pi \\times 1000 = 4000\\pi... | # Optical Systems: Description and Physical Principles
---
## (a) Search Light: 1000 cp Spherical Source → 10⁶ cp Beam
### Radiometric Budget
The 10 cm-diameter spherical source emits 1000 cd uniformly in every direction, giving a total luminous flux
$$\Phi = 4\pi \times 1000 = 4000\pi \;\text{lm}.$$
When placed ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000948 |
Programming | Cpp | medium | The season for Snuke Festival has come again this year. First of all, Ringo will perform a ritual to summon Snuke. For the ritual, he needs an altar, which consists of three parts, one in each of the three categories: upper, middle and lower.
He has N parts for each of the three categories. The size of the i-th upper ... | [
"Looking at this problem, I need to count triples (a, b, c) where a ∈ A, b ∈ B, c ∈ C, and a < b < c.",
"**Key Insight:** Sort all three arrays, then for each element `b` in B, use binary search to count:\n- How many elements in A are strictly less than `b`\n- How many elements in C are strictly greater than `b`"... | Looking at this problem, I need to count triples (a, b, c) where a ∈ A, b ∈ B, c ∈ C, and a < b < c.
**Key Insight:** Sort all three arrays, then for each element `b` in B, use binary search to count:
- How many elements in A are strictly less than `b`
- How many elements in C are strictly greater than `b`
Multiply t... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000949 |
Artificial Intelligence | Logic Puzzle | easy | If a row of eight gears are meshed together and the first gear is rotated clockwise, which direction does the eighth gear turn? | [
"## Tracing the Gear Directions",
"When two meshed gears touch, they must rotate in **opposite** directions.",
"Starting from gear 1, each successive gear reverses:",
"| Gear | Direction |\n|------|-----------|\n| 1 | **Clockwise** (given) |\n| 2 | Counter-clockwise |\n| 3 | Clockwise |\n| 4 | Counter-clockwi... | ## Tracing the Gear Directions
When two meshed gears touch, they must rotate in **opposite** directions. Starting from gear 1, each successive gear reverses:
| Gear | Direction |
|------|-----------|
| 1 | **Clockwise** (given) |
| 2 | Counter-clockwise |
| 3 | Clockwise |
| 4 | Counter-clockwise |
| 5 | Clockwise |
... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000950 |
Programming | Python | medium | Bash wants to become a Pokemon master one day. Although he liked a lot of Pokemon, he has always been fascinated by Bulbasaur the most. Soon, things started getting serious and his fascination turned into an obsession. Since he is too young to go out and catch Bulbasaur, he came up with his own way of catching a Bulbas... | [
"# Solution",
"The problem asks how many times we can form the word \"Bulbasaur\" from the characters in the given string.",
"**Key Insight:** The word \"Bulbasaur\" requires specific letters:\n- `B`: 1 (uppercase)\n- `u`: 2\n- `l`: 1\n- `b`: 1\n- `a`: 2\n- `s`: 1\n- `r`: 1",
"The answer is simply the minimum... | # Solution
The problem asks how many times we can form the word "Bulbasaur" from the characters in the given string.
**Key Insight:** The word "Bulbasaur" requires specific letters:
- `B`: 1 (uppercase)
- `u`: 2
- `l`: 1
- `b`: 1
- `a`: 2
- `s`: 1
- `r`: 1
The answer is simply the minimum of (count of each required ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000951 |
Mathematics | - | hard | Find the roots of the polynomial $f(x) = -x^3 - 2x^2 + 3x - 8$. | [
"# Roots of $f(x) = -x^3 - 2x^2 + 3x - 8$",
"## Setting Up the Cubic",
"Multiplying by $-1$ to work with a monic polynomial:",
"$$x^3 + 2x^2 - 3x + 8 = 0$$",
"Testing all rational root candidates ($\\pm1, \\pm2, \\pm4, \\pm8$) yields **no rational roots**, so I apply **Cardano's method**.",
"## Depressing... | # Roots of $f(x) = -x^3 - 2x^2 + 3x - 8$
## Setting Up the Cubic
Multiplying by $-1$ to work with a monic polynomial:
$$x^3 + 2x^2 - 3x + 8 = 0$$
Testing all rational root candidates ($\pm1, \pm2, \pm4, \pm8$) yields **no rational roots**, so I apply **Cardano's method**.
## Depressing the Cubic
Substitute $x = y... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000952 |
Programming | - | medium | While playing with geometric figures Alex has accidentally invented a concept of a n-th order rhombus in a cell grid.
A 1-st order rhombus is just a square 1 × 1 (i.e just a cell).
A n-th order rhombus for all n ≥ 2 one obtains from a n-1-th order rhombus adding all cells which have a common side with it to it (look ... | [
"# Solution",
"Looking at this problem, I need to find the number of cells in an n-th order rhombus.",
"**Analyzing the pattern:**\n- Order 1: 1 cell (a single cell)\n- Order 2: 5 cells (center + 4 neighbors)\n- Order 3: 13 cells (5 + 8 new cells on the boundary)",
"The n-th order rhombus forms a **diamond** ... | # Solution
Looking at this problem, I need to find the number of cells in an n-th order rhombus.
**Analyzing the pattern:**
- Order 1: 1 cell (a single cell)
- Order 2: 5 cells (center + 4 neighbors)
- Order 3: 13 cells (5 + 8 new cells on the boundary)
The n-th order rhombus forms a **diamond** (all cells at Manhat... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000953 |
Science | - | hard | In what ways can multi‑omics single‑cell data be integrated with kinetic genome‑scale metabolic models to predict emergent phenotypes under fluctuating environmental stresses, while rigorously quantifying uncertainty from measurement noise and model parameterization? | [
"# Integrating Multi-Omics Single-Cell Data with Kinetic Genome-Scale Metabolic Models under Fluctuating Stress",
"This question sits at the intersection of single-cell systems biology, computational biophysics, and uncertainty-aware modelling.",
"There is no single \"pipeline\" yet; rather, a coherent strategy... | # Integrating Multi-Omics Single-Cell Data with Kinetic Genome-Scale Metabolic Models under Fluctuating Stress
This question sits at the intersection of single-cell systems biology, computational biophysics, and uncertainty-aware modelling. There is no single "pipeline" yet; rather, a coherent strategy emerges from co... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000954 |
Programming | Python | hard | Consider a tunnel on a one-way road. During a particular day, n cars numbered from 1 to n entered and exited the tunnel exactly once. All the cars passed through the tunnel at constant speeds.
A traffic enforcement camera is mounted at the tunnel entrance. Another traffic enforcement camera is mounted at the tunnel ex... | [
"# Finding Cars to Fine in a Tunnel",
"## Key Insight",
"Car `i` overtook car `j` if `i` entered **after** `j` but exited **before** `j`.",
"So car `i` must be fined if, among all cars that entered before it, at least one exited after it.",
"This means: for each car processed in **entry order**, I just need... | # Finding Cars to Fine in a Tunnel
## Key Insight
Car `i` overtook car `j` if `i` entered **after** `j` but exited **before** `j`. So car `i` must be fined if, among all cars that entered before it, at least one exited after it.
This means: for each car processed in **entry order**, I just need to track the **maximu... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000955 |
Mathematics | - | medium | Determine the values of $T$ for which the differential equation $x''(t) = -x(t)$ has non-unique solutions given the boundary conditions $x(0) = a_1$ and $x(T) = a_2$. | [
"# Non-Uniqueness of the Boundary Value Problem",
"## Setting Up the General Solution",
"The general solution of $x''(t) = -x(t)$ is",
"$$x(t) = A\\cos t + B\\sin t.$$",
"## Applying the Boundary Conditions",
"**At $t = 0$:**\n$$x(0) = A = a_1.$$",
"**At $t = T$:**\n$$x(T) = a_1\\cos T + B\\sin T = a_2.... | # Non-Uniqueness of the Boundary Value Problem
## Setting Up the General Solution
The general solution of $x''(t) = -x(t)$ is
$$x(t) = A\cos t + B\sin t.$$
## Applying the Boundary Conditions
**At $t = 0$:**
$$x(0) = A = a_1.$$
**At $t = T$:**
$$x(T) = a_1\cos T + B\sin T = a_2.$$
Solving for $B$:
$$B\sin T = a... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000956 |
Science | - | hard | How does the coupled transport of Fe(II)-bearing silicate nanoparticles and organic ligands influence redox stratification and trace metal speciation in suboxic marine sediments under varying bioturbation regimes? | [
"# Coupled Fe(II)–Silicate Nanoparticle / Ligand Transport and Its Bioturbation-Modulated Effects in Suboxic Sediments",
"This sits at a genuinely underexplored intersection of colloid geochemistry, benthic microbebiogeochemistry, and particle–organic matter co-transport.",
"I'll walk through the mechanistic ch... | # Coupled Fe(II)–Silicate Nanoparticle / Ligand Transport and Its Bioturbation-Modulated Effects in Suboxic Sediments
This sits at a genuinely underexplored intersection of colloid geochemistry, benthic microbebiogeochemistry, and particle–organic matter co-transport. I'll walk through the mechanistic chain from the n... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000957 |
Science | Inorganic Chemistry | medium | Consider the following transformation Cr(CO)x → Cr(CO)y(NO)z If both reactant and product follow EAN rule, then calculate value of x + z - y (where x, y and z are natural numbers). | [
"# Finding x, y, z in Cr(CO)ₓ → Cr(CO)ᵧ(NO)₂",
"## Setting Up the EAN Rule",
"Chromium has **Z = 24**, so the next noble gas is **Kr (Z = 36)**.",
"Both the reactant and product must have an **EAN = 36**.",
"## Reactant: Cr(CO)ₓ",
"- CO is a neutral, **2-electron** donor.\n- Cr is in the **0** oxidation s... | # Finding x, y, z in Cr(CO)ₓ → Cr(CO)ᵧ(NO)₂
## Setting Up the EAN Rule
Chromium has **Z = 24**, so the next noble gas is **Kr (Z = 36)**. Both the reactant and product must have an **EAN = 36**.
## Reactant: Cr(CO)ₓ
- CO is a neutral, **2-electron** donor.
- Cr is in the **0** oxidation state.
$$\text{EAN} = 24 - ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000958 |
Science | - | hard | Design an ultrafast mass spectrometric experiment to resolve transient conformational intermediates of a 150‑kDa protein during ligand binding, specifying ionization method, time‑of‑flight architecture, and data deconvolution algorithms required to achieve sub‑microsecond temporal resolution? | [
"# Ultrafast Mass Spectrometry Design: Transient Conformational Intermediates in a 150 kDa Protein–Ligand System",
"## 1.",
"Governing Strategy and Timescale Hierarchy",
"The central difficulty is that three distinct clocks are operating simultaneously, and only one of them (the chemical event) needs to be re... | # Ultrafast Mass Spectrometry Design: Transient Conformational Intermediates in a 150 kDa Protein–Ligand System
## 1. Governing Strategy and Timescale Hierarchy
The central difficulty is that three distinct clocks are operating simultaneously, and only one of them (the chemical event) needs to be read out on a sub-µs... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000959 |
Mathematics | - | hard | Consider a sequence $(u_n)$ defined by $u_1 = 1$ and $u_{n+1} = \frac{16u_n^3 + 27u_n}{48u_n^2 + 9}$. Find the largest integer less than the sum $S$ of 2008 terms, where $S = \frac{1}{4u_1 + 3} + \frac{1}{4u_2 + 3} + \cdots + \frac{1}{4u_{2008} + 3}$. | [
"# Finding the Largest Integer Less Than $S$",
"## Setting Up the Key Substitution",
"I need to recognize the recurrence structure.",
"Testing the substitution $u_n = \\frac{3}{4}\\coth\\theta_n$, I verify it satisfies the recurrence by matching it against the identity:",
"$$\\coth 3x = \\frac{\\coth^3 x + ... | # Finding the Largest Integer Less Than $S$
## Setting Up the Key Substitution
I need to recognize the recurrence structure. Testing the substitution $u_n = \frac{3}{4}\coth\theta_n$, I verify it satisfies the recurrence by matching it against the identity:
$$\coth 3x = \frac{\coth^3 x + 3\coth x}{3\coth^2 x + 1}$$
... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000960 |
Science | - | hard | What are the mechanistic consequences of phase-separated nucleolar condensates on the spatial organization and kinetic regulation of ribosomal RNA transcription during the G1/S transition in mammalian cells? | [
"# Phase-Separated Nucleolar Condensates and rRNA Transcription at the G1/S Transition",
"This question sits at the intersection of nucleocytoplasmic condensate biophysics, RNA Polymerase I transcriptional regulation, and cell-cycle control.",
"A substantial amount of the current understanding has emerged only ... | # Phase-Separated Nucleolar Condensates and rRNA Transcription at the G1/S Transition
This question sits at the intersection of nucleocytoplasmic condensate biophysics, RNA Polymerase I transcriptional regulation, and cell-cycle control. A substantial amount of the current understanding has emerged only in the last fi... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000961 |
Mathematics | - | medium | Find all pairs of prime numbers $(p, q)$ such that $$5^{2p} + 1997 = 5^{2q^2} + q^2$$ | [
"There are **no** pairs of primes \\((p,q)\\) satisfying the equation.",
"Indeed, reduce the equation modulo \\(5\\).",
"Since \\(p\\) and \\(q\\) are primes, both exponents \\(2p\\) and \\(2q^2\\) are positive, so",
"\\[\n5^{2p}\\equiv 0 \\pmod 5,\\qquad 5^{2q^2}\\equiv 0 \\pmod 5.\n\\]",
"Thus the given e... | There are **no** pairs of primes \((p,q)\) satisfying the equation.
Indeed, reduce the equation modulo \(5\). Since \(p\) and \(q\) are primes, both exponents \(2p\) and \(2q^2\) are positive, so
\[
5^{2p}\equiv 0 \pmod 5,\qquad 5^{2q^2}\equiv 0 \pmod 5.
\]
Thus the given equation
\[
5^{2p}+1997=5^{2q^2}+q^2
\]
im... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000962 |
Programming | - | hard | Build a fully playable 2048 game using HTML/CSS/JavaScript and pure JavaScript (no external libraries). Implement the following mechanics: new tile (2 or 4) spawned in a random empty cell after each valid move; tile merging logic (same-value tiles combine on slide); game-over detection when no legal moves remain; best ... | [
"# 2048 — Single-File Implementation",
"A complete, self-contained game.",
"Save it as `index.html` and open it in any browser.",
"The code is organized into three concerns — **`Game`** (state + logic), **`Renderer`** (DOM + animation), and **`Input`** (keyboard/touch) — driven by a single `requestAnimationFr... | # 2048 — Single-File Implementation
A complete, self-contained game. Save it as `index.html` and open it in any browser. The code is organized into three concerns — **`Game`** (state + logic), **`Renderer`** (DOM + animation), and **`Input`** (keyboard/touch) — driven by a single `requestAnimationFrame` loop.
```html... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000963 |
Programming | - | hard | Build a fully playable Maze Generator and Solver game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: recursive backtracking maze generation rendered step-by-step; configurable maze size: small (10×10), medium (20×20), large (40×40); regenerate button for a fresh rando... | [
"# Maze Generator & Solver Game",
"A complete, single-file implementation.",
"Save as `maze.html` and open in any browser.",
"```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<title>Maze Generator & Solver</title>\n<style>\n /* ---------- Page layout & controls styling --------... | # Maze Generator & Solver Game
A complete, single-file implementation. Save as `maze.html` and open in any browser.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Maze Generator & Solver</title>
<style>
/* ---------- Page layout & controls styling ---------- */
body {
margin: 0;... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000964 |
Science | - | hard | What is the quantitative contribution of epistatic interactions among non‑coding regulatory SNPs to the heritability of tissue‑specific alternative splicing patterns, as inferred from integrative Bayesian hierarchical models applied to large‑scale GTEx RNA‑seq data? | [
"# Epistatic Contributions to Splicing Heritability from GTEx: What Is and Isn't Known",
"## Short answer",
"There is no single, widely accepted quantitative estimate in the published literature that isolates the **epistatic (pairwise or higher-order interaction) component of non-coding SNP heritability specifi... | # Epistatic Contributions to Splicing Heritability from GTEx: What Is and Isn't Known
## Short answer
There is no single, widely accepted quantitative estimate in the published literature that isolates the **epistatic (pairwise or higher-order interaction) component of non-coding SNP heritability specifically for tis... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000965 |
Science | - | hard | In what ways does synaptic vesicle protein heterogeneity influence the stochastic release probability and temporal coding precision of cortical pyramidal neurons during high‑frequency gamma oscillations, and how can this be modeled mathematically? | [
"# Vesicle Heterogeneity, Stochastic Release, and Temporal Coding in Gamma Oscillations",
"This is a rich question that spans molecular synaptic biology, stochastic systems theory, and population-level cortical dynamics.",
"I will build the answer in layers: the biophysical substrate, the stochastic release mod... | # Vesicle Heterogeneity, Stochastic Release, and Temporal Coding in Gamma Oscillations
This is a rich question that spans molecular synaptic biology, stochastic systems theory, and population-level cortical dynamics. I will build the answer in layers: the biophysical substrate, the stochastic release model, propagatio... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000966 |
Mathematics | - | medium | Given a parabola \\( C: y^2 = 8x \\) with focus \\(F\\) and directrix \\(l\\), a line passing through point \\(F\\) intersects the parabola at points \\(A\\) and \\(B\\) and intersects the directrix at point \\(P\\). If \\(\left| AF \right| = 3\left| FB \right|\\), then the length of \\(\left| PF \right|\\) is
A: 7
B: ... | [
"# Finding |PF| for a Parabola",
"## Setting Up the Problem",
"For the parabola $y^2 = 8x = 4ax$, we have $a = 2$, so:\n- **Focus:** $F = (2, 0)$\n- **Directrix:** $l: x = -2$",
"## Parametrizing the Line Through F",
"I parametrize the line through $F$ using signed distance $t$ from $F$:\n$$x = 2 + t\\cos\\... | # Finding |PF| for a Parabola
## Setting Up the Problem
For the parabola $y^2 = 8x = 4ax$, we have $a = 2$, so:
- **Focus:** $F = (2, 0)$
- **Directrix:** $l: x = -2$
## Parametrizing the Line Through F
I parametrize the line through $F$ using signed distance $t$ from $F$:
$$x = 2 + t\cos\theta, \qquad y = t\sin\th... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000967 |
Programming | - | hard | How would you write this in Swift? def solve(s): # For storing the occurrences of symbols symbol_occurrences = {} # Change the case of each letter and reverse the string # And process symbols processed_str = '' for char in s[::-1]: if char.isalpha(): processed_str += char.sw... | [
"Here's the Swift translation:",
"```swift\nfunc solve(_ s: String) -> String {\n var symbolOccurrences: [Character: Int] = [:]\n var processedStr = \"\"",
"for char in s.reversed() {\n if char.isLetter {\n processedStr.append(char.isUppercase ? char.lowercased() : char.uppercased())\n ... | Here's the Swift translation:
```swift
func solve(_ s: String) -> String {
var symbolOccurrences: [Character: Int] = [:]
var processedStr = ""
for char in s.reversed() {
if char.isLetter {
processedStr.append(char.isUppercase ? char.lowercased() : char.uppercased())
} else {
... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000968 |
Programming | - | hard | Code a fair reader-writer lock (no reader or writer starvation) in Kotlin from scratch. Handle synchronization, race conditions, and deadlock prevention. | [
"# Fair Reader-Writer Lock in Kotlin",
"## Design Overview",
"The core fairness invariant: **once a writer is waiting, no new reader may enter.** This eliminates writer starvation.",
"Among writers, a strict FIFO queue ensures no writer is bypassed.",
"Readers still enjoy concurrent access when no writer is... | # Fair Reader-Writer Lock in Kotlin
## Design Overview
The core fairness invariant: **once a writer is waiting, no new reader may enter.** This eliminates writer starvation. Among writers, a strict FIFO queue ensures no writer is bypassed. Readers still enjoy concurrent access when no writer is pending.
```
Timeline... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000969 |
Mathematics | - | medium | $133 a$ is a positive integer, $a<100$, and $a^{3}+23$ is divisible by 24. The number of such $a$ is ( )
A. 4
B. 5
C. 9
D. 10 | [
"# Finding $a$ such that $a^3 + 23$ is divisible by 24",
"## Setting Up the Congruence",
"We need $a^3 + 23 \\equiv 0 \\pmod{24}$, which gives:\n$$a^3 \\equiv -23 \\equiv 1 \\pmod{24}$$",
"## Using the Chinese Remainder Theorem ($24 = 8 \\times 3$)",
"**Modulo 8:** I check each residue class for odd $a$ (ev... | # Finding $a$ such that $a^3 + 23$ is divisible by 24
## Setting Up the Congruence
We need $a^3 + 23 \equiv 0 \pmod{24}$, which gives:
$$a^3 \equiv -23 \equiv 1 \pmod{24}$$
## Using the Chinese Remainder Theorem ($24 = 8 \times 3$)
**Modulo 8:** I check each residue class for odd $a$ (even $a$ gives $a^3 \equiv 0$)... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000970 |
Artificial Intelligence | Logic Puzzle | easy | A digital asset doubles in value every hour. If the asset is worth exactly $1,000 at 12:00 PM, at what time was it worth exactly $250? | [
"## Working Backwards",
"Since the asset **doubles** every hour, going **backwards** in time means we **halve** the value:",
"| Time | Value |\n|---|---|\n| **12:00 PM** | **$1,000** |\n| 11:00 AM | $500 |\n| **10:00 AM** | **$250** |",
"The asset was worth exactly **$250 at 10:00 AM**.",
"**Quick check:** ... | ## Working Backwards
Since the asset **doubles** every hour, going **backwards** in time means we **halve** the value:
| Time | Value |
|---|---|
| **12:00 PM** | **$1,000** |
| 11:00 AM | $500 |
| **10:00 AM** | **$250** |
The asset was worth exactly **$250 at 10:00 AM**.
**Quick check:** $250 → ×2 → $500 → ×2 → $... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000971 |
Artificial Intelligence | Logic Puzzle | medium | I am 20 minutes away from the car wash to clean my truck, but I realized I left the sponge at home. If I drive back to get it and then return to the car wash, how many minutes will I have spent driving in total? | [
"## Total Driving Time: **40 minutes**",
"Here's the breakdown:",
"1. **Drive back home** to grab the sponge: **20 minutes**\n2. **Drive from home to the car wash**: **20 minutes**",
"**20 + 20 = 40 minutes** of driving in total."
] | ## Total Driving Time: **40 minutes**
Here's the breakdown:
1. **Drive back home** to grab the sponge: **20 minutes**
2. **Drive from home to the car wash**: **20 minutes**
**20 + 20 = 40 minutes** of driving in total. | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000972 |
Mathematics | - | medium | Players $A$ and $B$ play the following game on a board consisting of six fields numbered $1,2, \ldots, 6$. At the beginning, a figure is placed on the field numbered 2, and then a regular die is rolled. If a number divisible by three is rolled, the figure moves to the field with a number one less, otherwise to the fiel... | [
"# Probability That Player A Wins",
"## Setting Up the Random Walk",
"After rolling a fair die:\n- **Divisible by 3** (rolls 3 or 6): figure moves **down** one field → probability $\\frac{2}{6} = \\frac{1}{3}$\n- **Not divisible by 3** (rolls 1, 2, 4, or 5): figure moves **up** one field → probability $\\frac{4... | # Probability That Player A Wins
## Setting Up the Random Walk
After rolling a fair die:
- **Divisible by 3** (rolls 3 or 6): figure moves **down** one field → probability $\frac{2}{6} = \frac{1}{3}$
- **Not divisible by 3** (rolls 1, 2, 4, or 5): figure moves **up** one field → probability $\frac{4}{6} = \frac{2}{3}... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000973 |
Programming | Cpp | medium | Takahashi and Aoki will have a battle using their monsters.
The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.
The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases ... | [
"Looking at this problem, I need to determine when each monster dies:",
"- **Takahashi** attacks first (turns 1, 3, 5, ...).",
"He needs `ceil(C/B)` attacks to kill Aoki's monster, so his killing blow lands at turn `2*ceil(C/B) - 1`.\n- **Aoki** attacks second (turns 2, 4, 6, ...).",
"He needs `ceil(A/D)` att... | Looking at this problem, I need to determine when each monster dies:
- **Takahashi** attacks first (turns 1, 3, 5, ...). He needs `ceil(C/B)` attacks to kill Aoki's monster, so his killing blow lands at turn `2*ceil(C/B) - 1`.
- **Aoki** attacks second (turns 2, 4, 6, ...). He needs `ceil(A/D)` attacks to kill Takahas... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000974 |
Science | - | hard | In what ways does the interplay between mitochondrial NAD⁺-dependent malate dehydrogenase allosteric regulation and cytosolic calcium signaling modulate the thermodynamic efficiency of oxidative phosphorylation under hypoxic ischemic conditions? | [
"# mMDH Allosteric/Thermodynamic Regulation, Ca²⁺ Signaling, and OXPHOS Efficiency Under Hypoxic-Ischemic Stress",
"This is a deeply layered question that sits at the crossroads of mitochondrial redox bioenergetics, signal transduction, and nonequilibrium thermodynamics.",
"I'll unpack it systematically, and I'... | # mMDH Allosteric/Thermodynamic Regulation, Ca²⁺ Signaling, and OXPHOS Efficiency Under Hypoxic-Ischemic Stress
This is a deeply layered question that sits at the crossroads of mitochondrial redox bioenergetics, signal transduction, and nonequilibrium thermodynamics. I'll unpack it systematically, and I'll also flag w... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000975 |
Artificial Intelligence | Logic Puzzle | medium | If the baker had remembered the oven, the cake would be burnt. Since the baker forgot the oven, how many cakes are currently in the oven? | [
"This is a trick question.",
"The information provided **does not allow us to determine how many cakes are currently in the oven**.",
"Here's why:",
"- \"If the baker had remembered the oven, the cake would be burnt\" is a **counterfactual conditional**.",
"It describes a *hypothetical* outcome, not what ac... | This is a trick question. The information provided **does not allow us to determine how many cakes are currently in the oven**.
Here's why:
- "If the baker had remembered the oven, the cake would be burnt" is a **counterfactual conditional**. It describes a *hypothetical* outcome, not what actually happened.
- "The b... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000976 |
Science | - | hard | What are the microscopic mechanisms by which topological defects in a quantum spin liquid couple to lattice phonons to generate observable thermal Hall conductivity, and how can neutron scattering data be used to constrain the underlying gauge field dynamics? | [
"# Topological Defects, Phonon Coupling, and Thermal Hall in Quantum Spin Liquids",
"## 1.",
"The Setting: Gauge Structure of a QSL",
"A quantum spin liquid is most usefully described in a parton decomposition.",
"Writing the physical spin operator as S^i_r ≈ f†_r σ^i f_r (in a spinon representation), one i... | # Topological Defects, Phonon Coupling, and Thermal Hall in Quantum Spin Liquids
## 1. The Setting: Gauge Structure of a QSL
A quantum spin liquid is most usefully described in a parton decomposition. Writing the physical spin operator as S^i_r ≈ f†_r σ^i f_r (in a spinon representation), one introduces an emergent g... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000977 |
Mathematics | - | easy | The numbers $3, 5, 7, a,$ and $b$ have an average (arithmetic mean) of $15$. What is the average of $a$ and $b$?
$\textbf{(A) } 0 \qquad\textbf{(B) } 15 \qquad\textbf{(C) } 30 \qquad\textbf{(D) } 45 \qquad\textbf{(E) } 60$ | [
"## Finding the Average of $a$ and $b$",
"**Setting up the equation:**",
"The five numbers $3, 5, 7, a, b$ have an average of $15$, so:",
"$$\\frac{3 + 5 + 7 + a + b}{5} = 15$$",
"**Solving for $a + b$:**",
"$$3 + 5 + 7 + a + b = 75$$",
"$$15 + a + b = 75$$",
"$$a + b = 60$$",
"**Finding the average... | ## Finding the Average of $a$ and $b$
**Setting up the equation:**
The five numbers $3, 5, 7, a, b$ have an average of $15$, so:
$$\frac{3 + 5 + 7 + a + b}{5} = 15$$
**Solving for $a + b$:**
$$3 + 5 + 7 + a + b = 75$$
$$15 + a + b = 75$$
$$a + b = 60$$
**Finding the average of $a$ and $b$:**
$$\frac{a + b}{2} ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000978 |
Programming | - | hard | Build a fully playable Asteroids clone game using HTML5 Canvas and pure JavaScript (no external libraries). Implement the following mechanics: occasional UFO enemy that fires aimed shots at the player; player ship with thrust, rotation, and inertia in 2D space; collision detection between bullets/ship and asteroids; pr... | [
"# Asteroids Clone",
"A complete, single-file implementation.",
"Save as `asteroids.html` and open in any browser.",
"```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<title>Asteroids</title>\n<style>\n /* Full-screen black canvas, centered, no scrollbars */\n html, body { mar... | # Asteroids Clone
A complete, single-file implementation. Save as `asteroids.html` and open in any browser.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Asteroids</title>
<style>
/* Full-screen black canvas, centered, no scrollbars */
html, body { margin: 0; padding: 0; background... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000979 |
Mathematics | - | hard | On the bank of the river stand 10 sheikhs, each with a harem of 100 wives. Also at the bank stands an $n$-person yacht. By law, a woman should not be on the same bank, on the yacht, or even at a transfer point with a man if her husband is not present. What is the smallest $n$ for which all the sheikhs and their wives c... | [
"# Finding the Minimum Yacht Capacity",
"## Understanding the Constraint",
"The law states: **if a woman's husband is not at her location, then no man may be at that location.** Equivalently, at any bank or on the yacht, if a man is present, every woman there must have her husband also present.",
"## Key Obse... | # Finding the Minimum Yacht Capacity
## Understanding the Constraint
The law states: **if a woman's husband is not at her location, then no man may be at that location.** Equivalently, at any bank or on the yacht, if a man is present, every woman there must have her husband also present.
## Key Observations
1. **Wi... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000980 |
Mathematics | - | hard | Evaluate the integral
$$\int\limits_{0}^{\infty }e^{-t^2/2}\cos \frac{x^2}{2t^2}dt.$$ | [
"# Evaluating the Integral",
"$$I(x) = \\int_0^{\\infty} e^{-t^2/2}\\cos\\frac{x^2}{2t^2}\\,dt$$",
"## Strategy: Complex Exponential + Gaussian-Bessel Formula",
"I express the cosine as the real part of a complex exponential:",
"$$I(x) = \\operatorname{Re}\\int_0^{\\infty} e^{-t^2/2}\\;e^{\\,i x^2/(2t^2)}\\... | # Evaluating the Integral
$$I(x) = \int_0^{\infty} e^{-t^2/2}\cos\frac{x^2}{2t^2}\,dt$$
## Strategy: Complex Exponential + Gaussian-Bessel Formula
I express the cosine as the real part of a complex exponential:
$$I(x) = \operatorname{Re}\int_0^{\infty} e^{-t^2/2}\;e^{\,i x^2/(2t^2)}\,dt = \operatorname{Re}\int_0^{\... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000981 |
Programming | - | hard | Walk through a system design for a URL shortener service (like bit.ly). Key constraints: URL expiry TTLs and click analytics dashboards; custom aliases and collision-free ID generation. Cover: API design, high-level component diagram, database choice and justification, failure modes and resiliency. | [
"# URL Shortener – System Design Walkthrough",
"## 0.",
"Scale Assumptions (to ground every decision)",
"| Metric | Value |\n|---|---|\n| URL creates | ~10 M / day (~120 RPS avg, 1 K RPS peak) |\n| Redirect hits | ~1 B / day (~12 K RPS avg, **150 K RPS peak**) |\n| Redirect p99 latency budget | **< 15 ms** (u... | # URL Shortener – System Design Walkthrough
## 0. Scale Assumptions (to ground every decision)
| Metric | Value |
|---|---|
| URL creates | ~10 M / day (~120 RPS avg, 1 K RPS peak) |
| Redirect hits | ~1 B / day (~12 K RPS avg, **150 K RPS peak**) |
| Redirect p99 latency budget | **< 15 ms** (users notice > 50 ms) |... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000982 |
Mathematics | - | easy | Let $x$ be the number of prime numbers between 10 and 30 .
What is the number equal to $\frac{x^{2}-4}{x+2}$ ?
## | [
"# Finding the Value",
"## Step 1: Count the Primes Between 10 and 30",
"Listing the primes in the range $10 < p < 30$:",
"$$11,\\ 13,\\ 17,\\ 19,\\ 23,\\ 29$$",
"This gives $x = 6$.",
"## Step 2: Simplify the Expression",
"$$\\frac{x^2 - 4}{x + 2} = \\frac{(x-2)(x+2)}{x+2} = x - 2 \\qquad (x \\neq -2)$... | # Finding the Value
## Step 1: Count the Primes Between 10 and 30
Listing the primes in the range $10 < p < 30$:
$$11,\ 13,\ 17,\ 19,\ 23,\ 29$$
This gives $x = 6$.
## Step 2: Simplify the Expression
$$\frac{x^2 - 4}{x + 2} = \frac{(x-2)(x+2)}{x+2} = x - 2 \qquad (x \neq -2)$$
## Step 3: Evaluate
$$x - 2 = 6 - ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000983 |
Science | - | hard | How does epistatic interaction between non-coding regulatory elements and 3D chromatin architecture influence allele-specific expression variance in polyploid organisms under fluctuating environmental stress? | [
"# Epistatic Regulatory–Architectural Interactions, ASE Variance, and Polyploid Plasticity Under Fluctuating Stress",
"This question sits at the convergence of quantitative genetics, structural genomics, and stress physiology.",
"There is no single \"answer\" in the textbook sense; rather, the current evidence ... | # Epistatic Regulatory–Architectural Interactions, ASE Variance, and Polyploid Plasticity Under Fluctuating Stress
This question sits at the convergence of quantitative genetics, structural genomics, and stress physiology. There is no single "answer" in the textbook sense; rather, the current evidence points toward a ... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000984 |
Programming | - | hard | Analyze the amortized time complexity using the aggregate analysis method of suffix array construction (Kasai's LCP) on an input of size n=41,901,723. Provide a rigorous justification. | [
"# Aggregate Amortized Analysis of Kasai's LCP Construction for *n* = 41,901,723",
"## 1.",
"The Algorithm (Recall)",
"Given a string $S[0..n\\!-\\!1]$ and its suffix array $\\text{SA}[0..n\\!-\\!1]$, Kasai's algorithm builds the LCP array in linear time:",
"```\nKasai_LCP(S, SA):\n n ← |S|\n for i ← ... | # Aggregate Amortized Analysis of Kasai's LCP Construction for *n* = 41,901,723
## 1. The Algorithm (Recall)
Given a string $S[0..n\!-\!1]$ and its suffix array $\text{SA}[0..n\!-\!1]$, Kasai's algorithm builds the LCP array in linear time:
```
Kasai_LCP(S, SA):
n ← |S|
for i ← 0 to n-1: rank[SA[i]] ←... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000985 |
Mathematics | - | hard | In the Cartesian coordinate system, a point whose both coordinates are rational numbers is called a rational point. If $a$ is an irrational number, then among all lines passing through the point $(a, 0)$,
(A) there are infinitely many lines, each of which contains at least two rational points;
(B) there are exactly $n(... | [
"# Lines Through $(a, 0)$ Containing at Least Two Rational Points",
"## Setting Up the Problem",
"Any line through $(a, 0)$ is either:\n- The **vertical line** $x = a$, or\n- A **non-vertical line** with equation $y = m(x - a)$ for some slope $m$.",
"## Eliminating the Vertical Line",
"Since $a$ is irration... | # Lines Through $(a, 0)$ Containing at Least Two Rational Points
## Setting Up the Problem
Any line through $(a, 0)$ is either:
- The **vertical line** $x = a$, or
- A **non-vertical line** with equation $y = m(x - a)$ for some slope $m$.
## Eliminating the Vertical Line
Since $a$ is irrational, every point on $x =... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000986 |
Artificial Intelligence | Logic Puzzle | easy | If Sarah is 40 now, in 20 years she will be twice as old as Leo was 10 years ago. How old is Leo now? | [
"## Solving for Leo's Age",
"**Set up the equation:**",
"- Sarah in 20 years: 40 + 20 = **60**\n- Leo 10 years ago: *L* − 10",
"The problem states:",
"$$60 = 2(L - 10)$$",
"**Solve:**",
"$$60 = 2L - 20$$\n$$80 = 2L$$\n$$L = 40$$",
"**Check:** Leo is 40 now → 10 years ago he was 30 → twice that is 60 →... | ## Solving for Leo's Age
**Set up the equation:**
- Sarah in 20 years: 40 + 20 = **60**
- Leo 10 years ago: *L* − 10
The problem states:
$$60 = 2(L - 10)$$
**Solve:**
$$60 = 2L - 20$$
$$80 = 2L$$
$$L = 40$$
**Check:** Leo is 40 now → 10 years ago he was 30 → twice that is 60 → Sarah in 20 years is 60. ✓
**Leo i... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000987 |
Mathematics | - | medium | The numbers $1,2,3, \cdots, k^{2}$ are arranged in the following way:
$$
\begin{array}{cccc}
1 & 2 & \cdots & k \\
k+1 & k+2 & \cdots & 2 k \\
\vdots & \vdots & \cdots & \vdots \\
(k-1) k+1 & (k-1) k+2 & \cdots & k^{2}
\end{array}
$$
Select any one of these numbers and strike out the row and column in which it lies. A... | [
"# Finding the Sum of $k$ Selected Numbers",
"## Setting Up the Problem",
"The entry in **row $i$, column $j$** of the grid is:\n$$a_{ij} = (i-1)k + j$$",
"After selecting a number and striking out its row and column, I repeat this $k$ times.",
"This guarantees that I pick **exactly one entry from each row ... | # Finding the Sum of $k$ Selected Numbers
## Setting Up the Problem
The entry in **row $i$, column $j$** of the grid is:
$$a_{ij} = (i-1)k + j$$
After selecting a number and striking out its row and column, I repeat this $k$ times. This guarantees that I pick **exactly one entry from each row and each column** — tha... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000988 |
Programming | - | medium | Write a Python program that uses the function "get_name" to ask the user for their full name, including their middle name, and then prints it back to them in reverse order, but with the first and middle names reversed. For example, if the user enters "John David Smith", the program should print "David John Smith". In ... | [
"```python\ndef get_name():\n \"\"\"Ask the user for their full name, including middle name(s).\"\"\"\n name = input(\"Please enter your full name (including middle name): \")\n return name",
"def reverse_first_and_middle(full_name):\n \"\"\"\n Reverse the first name and all middle name(s), while k... | ```python
def get_name():
"""Ask the user for their full name, including middle name(s)."""
name = input("Please enter your full name (including middle name): ")
return name
def reverse_first_and_middle(full_name):
"""
Reverse the first name and all middle name(s), while keeping
the last name i... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000989 |
Science | Computational Physics | hard | Place a medium with a periodic permittivity in the integration volume and verify that this act as a frequency-dependent filter that does not propagate certain frequencies. | [
"# Periodic Permittivity as a Frequency-Dependent Filter",
"## 1.",
"Setup: The Wave Equation in a Periodic Dielectric",
"Consider a source-free, non-magnetic medium whose permittivity is spatially periodic with lattice vector **a**:",
"$$\\varepsilon(\\mathbf{r} + \\mathbf{a}) = \\varepsilon(\\mathbf{r}).$... | # Periodic Permittivity as a Frequency-Dependent Filter
## 1. Setup: The Wave Equation in a Periodic Dielectric
Consider a source-free, non-magnetic medium whose permittivity is spatially periodic with lattice vector **a**:
$$\varepsilon(\mathbf{r} + \mathbf{a}) = \varepsilon(\mathbf{r}).$$
From Maxwell's equations... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000990 |
Science | - | hard | In a hybrid quantum‑classical simulation of a strongly correlated electron system, how can one rigorously benchmark the error propagation when embedding a variational quantum eigensolver within a density matrix renormalization group framework for 2D Hubbard models? | [
"# Benchmarking Error Propagation in a VQE-Embedded DMRG Hybrid for the 2D Hubbard Model",
"This is a genuinely hard problem because errors at three distinct levels—VQE, DMRG, and their self-consistent interface—do not simply add; they couple nonlinearly through a fixed-point iteration.",
"A rigorous benchmarki... | # Benchmarking Error Propagation in a VQE-Embedded DMRG Hybrid for the 2D Hubbard Model
This is a genuinely hard problem because errors at three distinct levels—VQE, DMRG, and their self-consistent interface—do not simply add; they couple nonlinearly through a fixed-point iteration. A rigorous benchmarking protocol mu... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000991 |
Science | - | hard | What mechanistic pathways link microglial epigenetic reprogramming to synaptic pruning dysregulation in early‑stage Alzheimer’s disease, and how can multi‑omics longitudinal data be integrated to infer causal network dynamics? | [
"# Microglial Epigenetic Reprogramming, Synaptic Pruning Dysregulation, and Causal Multi-Omics Integration in Early-Stage Alzheimer's Disease",
"## 1.",
"The Microglial Epigenetic Landscape in the Context of Early AD",
"Microglia do not respond to the early AD milieu (soluble Aβ oligomers, misfolded tau seeds... | # Microglial Epigenetic Reprogramming, Synaptic Pruning Dysregulation, and Causal Multi-Omics Integration in Early-Stage Alzheimer's Disease
## 1. The Microglial Epigenetic Landscape in the Context of Early AD
Microglia do not respond to the early AD milieu (soluble Aβ oligomers, misfolded tau seeds, low-grade comple... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000992 |
Mathematics | - | medium | Evaluate the sum of the series \( \sum_{n \in \Bbb{Z}} |c_n|^2 \), where for each integer \( n \), \( c_n \) is defined as:
\[ c_n = \frac{1}{\sqrt{2\pi}} \int_{-\pi}^{\pi} e^{i(n-i)x} \, dx \]
What is the value of \( \sum_{n \in \Bbb{Z}} |c_n|^2 \)?
(a) \( \cosh(\pi) \) \hspace{2cm} (b) \( \sinh(\pi) \) \hspace{2cm} ... | [
"# Evaluating the Sum of Squared Fourier Coefficients",
"## Computing $c_n$",
"The integral in $c_n$ has exponent $i(n-i)x = inx + x$, so:",
"$$c_n = \\frac{1}{\\sqrt{2\\pi}} \\int_{-\\pi}^{\\pi} e^{(1+in)x}\\,dx = \\frac{1}{\\sqrt{2\\pi}}\\cdot \\frac{e^{(1+in)x}}{1+in}\\bigg|_{-\\pi}^{\\pi}$$",
"Using $e^... | # Evaluating the Sum of Squared Fourier Coefficients
## Computing $c_n$
The integral in $c_n$ has exponent $i(n-i)x = inx + x$, so:
$$c_n = \frac{1}{\sqrt{2\pi}} \int_{-\pi}^{\pi} e^{(1+in)x}\,dx = \frac{1}{\sqrt{2\pi}}\cdot \frac{e^{(1+in)x}}{1+in}\bigg|_{-\pi}^{\pi}$$
Using $e^{\pm in\pi} = (-1)^n$:
$$c_n = \fra... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000993 |
Programming | - | hard | A mystical clock in the ancient city of Algora has N unique digits arranged in a circle. Each digit has a specific magical power value. The clock's magic is calculated by summing the product of each digit's position (starting from 1) and its power value when the clock is in a particular orientation.
The clock rotates... | [
"Looking at this problem, I need to find the maximum magic value across all N possible rotations of a circular arrangement.",
"**Key Insight:** I can derive a recurrence relation between consecutive rotations.",
"If `S_k` is the magic value after k rotations, then:\n- `S_0 = Σ (i+1) * a[i]`\n- `S_k = S_{k-1} + ... | Looking at this problem, I need to find the maximum magic value across all N possible rotations of a circular arrangement.
**Key Insight:** I can derive a recurrence relation between consecutive rotations.
If `S_k` is the magic value after k rotations, then:
- `S_0 = Σ (i+1) * a[i]`
- `S_k = S_{k-1} + N * a[k-1] - to... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000994 |
Science | - | hard | What are the mechanistic pathways by which microglial NLRP3 inflammasome activation modulates synaptic pruning in adult neuroplasticity, and how can optogenetic manipulation of intracellular calcium flux elucidate causality? | [
"# Microglial NLRP3 Inflammasome, Synaptic Pruning, and Optogenetic Ca²⁺ Causality",
"## 1.",
"Framing the Intersection",
"In the adult brain, microglia are not static sentinels but active sculptors of circuit architecture.",
"Synaptic pruning—the elimination of redundant, weaker, or maladaptive synapses—re... | # Microglial NLRP3 Inflammasome, Synaptic Pruning, and Optogenetic Ca²⁺ Causality
## 1. Framing the Intersection
In the adult brain, microglia are not static sentinels but active sculptors of circuit architecture. Synaptic pruning—the elimination of redundant, weaker, or maladaptive synapses—remains a continuous proc... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000995 |
Mathematics | - | medium | Find the number of solutions to the equation:
$6{x}^3 + {x}^2 + {x} + 2x = 2018. $
With {x} we denote the fractional part of the number x. | [
"# Finding the Number of Solutions",
"## Setting Up the Problem",
"Let me write $x = n + f$ where $n = \\lfloor x \\rfloor$ is an integer and $f = \\{x\\} \\in [0,1)$ is the fractional part.",
"Substituting into the equation:",
"$$6f^3 + f^2 + f + 2(n+f) = 2018$$",
"$$6f^3 + f^2 + 3f + 2n = 2018$$",
"##... | # Finding the Number of Solutions
## Setting Up the Problem
Let me write $x = n + f$ where $n = \lfloor x \rfloor$ is an integer and $f = \{x\} \in [0,1)$ is the fractional part.
Substituting into the equation:
$$6f^3 + f^2 + f + 2(n+f) = 2018$$
$$6f^3 + f^2 + 3f + 2n = 2018$$
## Determining Possible Integer Valu... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000996 |
Mathematics | - | hard | Given that the sequence {a<sub>n</sub>} is an arithmetic sequence, if $$\frac {a_{11}}{a_{10}}$$ < -1, and its first n terms sum S<sub>n</sub> has a maximum value, then the maximum value of n that makes S<sub>n</sub> > 0 is ( )
A: 21
B: 20
C: 19
D: 18 | [
"# Finding the Maximum n Where Sₙ > 0",
"## Setting Up the Conditions",
"Let the arithmetic sequence have first term $a_1$ and common difference $d$.",
"**From $\\frac{a_{11}}{a_{10}} < -1$:** The ratio is negative, so $a_{10}$ and $a_{11}$ have opposite signs.",
"**From $S_n$ having a maximum:** The common... | # Finding the Maximum n Where Sₙ > 0
## Setting Up the Conditions
Let the arithmetic sequence have first term $a_1$ and common difference $d$.
**From $\frac{a_{11}}{a_{10}} < -1$:** The ratio is negative, so $a_{10}$ and $a_{11}$ have opposite signs.
**From $S_n$ having a maximum:** The common difference must be $d... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000997 |
Programming | - | hard | Envision yourself wrestling with a '503 Service Unavailable' conundrum while navigating the complex maze of Amazon Web Services (AWS) Lambda. Could you meticulously architect a detailed manual that accurately delineates the genesis and management of serverless applications leveraging the might of AWS Lambda? This manua... | [
"# AWS Lambda Serverless Architecture: The Definitive Operations Manual\n## Architecting, Optimizing, and Resolving 503 Service Unavailable Conundrums",
"---",
"## TABLE OF CONTENTS",
"1.",
"Executive Summary & The 503 Crisis\n2.",
"Foundational Architecture of AWS Lambda\n3.",
"Genesis: Building Server... | # AWS Lambda Serverless Architecture: The Definitive Operations Manual
## Architecting, Optimizing, and Resolving 503 Service Unavailable Conundrums
---
## TABLE OF CONTENTS
1. Executive Summary & The 503 Crisis
2. Foundational Architecture of AWS Lambda
3. Genesis: Building Serverless Applications
4. The 503 Servic... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000998 |
Artificial Intelligence | Logic Puzzle | easy | How many unique letters are used in the word 'comprehensiveness'? | [
"To find the unique letters in **\"comprehensiveness\"**, let me list each distinct letter:",
"c, o, m, p, r, e, h, n, s, i, v",
"That gives **11** unique letters."
] | To find the unique letters in **"comprehensiveness"**, let me list each distinct letter:
c, o, m, p, r, e, h, n, s, i, v
That gives **11** unique letters. | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-000999 |
Programming | Python | hard | Vasya has an array of integers of length n.
Vasya performs the following operations on the array: on each step he finds the longest segment of consecutive equal integers (the leftmost, if there are several such segments) and removes it. For example, if Vasya's array is [13, 13, 7, 7, 7, 2, 2, 2], then after one operat... | [
"Looking at this problem, I need to simulate repeatedly removing the longest (leftmost on ties) run of consecutive equal elements, where removing a run may cause its neighbors to merge.",
"**Key Insight:** Compress the array into segments of (value, length).",
"Use a doubly linked list for neighbors and a max-h... | Looking at this problem, I need to simulate repeatedly removing the longest (leftmost on ties) run of consecutive equal elements, where removing a run may cause its neighbors to merge.
**Key Insight:** Compress the array into segments of (value, length). Use a doubly linked list for neighbors and a max-heap (with lazy... | Review the intermediate steps and independently check the final result against the question. | Skipping an assumption or accepting the final result without an independent check. | the-forge-001000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.