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 s.

A075790

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 s.

Terms

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

External references