Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 18662

Combinatorics (combinatorial analysis) is a branch of mathematics that studies the discrete objects, the set (a combination, permutation, deployment and transfer of elements) and the relationship to them (eg, partial order).

3 votes

Algorithm to generate all vectors of integers with magnitude between $n\pm \delta$

What about a simple nested loop to give you one octant of the solution, which can then be copied due to symmetry: $i$ from 0 to $d+n$ $j$ from 0 to $\sqrt{(d+n)^2-i^2}$ $k$ from $\sqrt{(d-n)^2-i^2- …
Jannis Teunissen's user avatar