Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/semigroup-factorization-lengths

Given1..8 distinct positive generators1..32 with collective gcd1 and a target0..128, return EVERY distinct length of a nonnegative generator-coefficient factorization of that target, sorted ascending. Length is the sum of coefficients. Retain ALL supplied generators, even redundant ones; do not replace by a minimal generating set. Return the sorted distinct positive differences of consecutive atta

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/semigroup-factorization-lengths

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/semigroup-factorization-lengths", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"generators":[3,5],"target":15}),
});
console.log(await res.json());

Example input

{
  "generators": [
    3,
    5
  ],
  "target": 15
}