Widths

by jcubed111

JavaScript

/*widths*/
function o(a) {
    window.document.write(a);
}

marginMin = 10;
marginMax = 20;
min = 500;
max = 1000;

for (j = marginMin; j <= marginMax; j++) {
    o("<b>" + j + "</b><br>");
    for (i = min; i <= max; i++) {
        out = (i + " - ");
        check = [];
        for (k = 1; k <= 100; k++) {
            if (((i - (j * (k + 1))) / k) % 1 == 0 && ((i - (j * (k + 1))) / k) >= 0) {
                out += (k + " ");
                check[k] = true;
            }
        }
        out += ("<br/>");
        if (check[2] == true && check[3] == true && check[4] == true && check[5] == true && check[6] == true && check[12] == true) {
            o(out)
        }
    }
}