cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A239588 Fourth powers that are cyclops numbers.

Original entry on oeis.org

0, 7890481, 9150625, 623201296, 981506241, 17363069361, 18945044881, 28813025536, 33871089681, 38167092496, 45954068161, 89526025681, 95565066496, 1421970391296, 1551160647936, 1736870953216, 3941340648961, 4771970346256, 5281980641536, 5436960129441
Offset: 1

Views

Author

Colin Barker, Mar 24 2014

Keywords

Comments

Intersection of A000583 (Fourth powers) and A134808 (Cyclops numbers).

Crossrefs

Programs

  • Mathematica
    cn4Q[n_]:=Module[{idn=IntegerDigits[n],len},len=Length[idn]; OddQ[ len] && idn[[(len+1)/2]]==0&&DigitCount[n,10,0]==1]; Select[Range[0,2000]^4, cn4Q] (* Harvey P. Dale, Dec 20 2015 *)
  • PARI
    is_cyclops(k) = {
      if(k==0, return(1));
      my(d=digits(k), j);
      if(#d%2==0 || d[#d\2+1]!=0, return(0));
      for(j=1, #d\2, if(d[j]==0, return(0)));
      for(j=#d\2+2, #d, if(d[j]==0, return(0)));
      return(1)}
    s=[]; for(n=0, 2000, if(is_cyclops(n^4), s=concat(s, n^4))); s

Formula

a(n) = A239591(n)^4.