OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
MATHEMATICA
binPol[n_, x_] := With[{bb = IntegerDigits[n, 2]}, bb.x^Range[Length[bb]-1, 0, -1]];
ip[n_] := If[IrreduciblePolynomialQ[binPol[n, x]], 1, 0];
A305430[n_] := Module[{k = n + 1}, While[ip[k] == 0, k++]; k];
b[_] = 0;
a[n_] := a[n] = With[{t = A305430[n]}, b[t] = b[t]+1];
Array[a, 105] (* Jean-François Alcover, Dec 20 2021 *)
PROG
(PARI)
A257000(n) = polisirreducible(Pol(binary(n)));
(PARI)
up_to = 65537;
ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om, invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om, invec[i], (1+pt))); outvec; };
v305300 = ordinal_transform(vector(up_to, n, A305430(n)));
A305300(n) = v305300[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 09 2018
STATUS
approved