If n can be written in the form r^i-s^j (see A074981), where r,s,i,j are integers with r>0, s>0, i>1, j>1 choose the representation with smallest r^i (in case of ties, minimize i and j); or if n is not of this form set r=s=i=j=0; sequence gives values of j.

A075791

If n can be written in the form r^i-s^j (see A074981), where r,s,i,j are integers with r>0, s>0, i>1, j>1 choose the representation with smallest r^i (in case of ties, minimize i and j); or if n is not of this form set r=s=i=j=0; sequence gives values of j.

Terms

    a(0) =3a(1) =2a(2) =2a(3) =2a(4) =2a(5) =0a(6) =2a(7) =2a(8) =2a(9) =7a(10) =2a(11) =2a(12) =2a(13) =0a(14) =2a(15) =2a(16) =3a(17) =2a(18) =3a(19) =2a(20) =2a(21) =3a(22) =2a(23) =2a(24) =2a(25) =2a(26) =2a(27) =2a(28) =2a(29) =3

External references