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.
%I A342826 #37 Aug 04 2024 03:20:15 %S A342826 1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99,101,111,121,131,141,151, %T A342826 161,171,181,191,202,212,222,232,242,252,262,272,282,292,303,313,323, %U A342826 333,343,353,363,373,383,393,404,414,424,434,444,454,464 %N A342826 Numbers k such that d(1)^0 + d(2)^1 + ... + d(p)^(p-1) = d(1)^(p-1) + d(2)^(p-2) + ... + d(p)^0, where d(i), i=1..p, are the digits of k. %C A342826 This sequence starts off like other palindromic sequences such as A178354, A002113, A110751, and A227858 but it differs starting at the 110th term: 109th: 1001, 110th: 1011, 111th: 1101, ..., 119th: 1863, etc. %C A342826 Differs from A297271 (which e.g. has 1021, 1031, 1041,.. 1091 which are absent here). - _R. J. Mathar_, Sep 27 2021 %C A342826 Contains the palindromes, and palindromes where pairs of digits have been substituted by d(i)=0, d(p-i)=1 or d(i)=1, d(p-1)=0, and "genuine" numbers like 1863, 2450, 2804, 2814, 3681, 4081, 4182, 103221, 113221, 122301, 122311, 142023,.. - _R. J. Mathar_, Sep 27 2021 %H A342826 R. J. Mathar, <a href="/A342826/b342826.txt">Table of n, a(n) for n = 1..1137</a> (replacing older b-file which did not contain a(101)) %H A342826 Carole Dubois, <a href="/A342826/a342826.jpg">Scatterplot of terms of A178354, A342826 vs Sum of powers in definition.</a> %e A342826 1863 is in this sequence because 1^0 + 8^1 + 6^2 + 3^3 = 1^3 + 8^2 + 6^1 + 3^0 = 72. %p A342826 isA342826 := proc(n) %p A342826 local dgs ; %p A342826 dgs := convert(n,base,10) ; %p A342826 if add(op(i,dgs)^(i-1),i=1..nops(dgs)) = add(op(-i,dgs)^(i-1),i=1..nops(dgs)) then %p A342826 true; %p A342826 else %p A342826 false; %p A342826 end if; %p A342826 end proc: %p A342826 A342826 := proc(n) %p A342826 option remember ; %p A342826 if n =1 then %p A342826 1; %p A342826 else %p A342826 for a from procname(n-1)+ 1 do %p A342826 if isA342826(a) then %p A342826 return a; %p A342826 end if; %p A342826 end do: %p A342826 end if; %p A342826 end proc: # _R. J. Mathar_, Sep 27 2021 %t A342826 Select[Range[500],Mod[#,10]!=0&&Total[IntegerDigits[#]^Range[0,IntegerLength[ #]-1]]==Total[IntegerDigits[#]^Range[IntegerLength[#]-1,0,-1]]&] (* _Harvey P. Dale_, Jan 18 2023 *) %o A342826 (Python) %o A342826 def digpow(s): return sum(int(d)**i for i, d in enumerate(s)) %o A342826 def aupto(limit): %o A342826 alst = [] %o A342826 for k in range(1, limit+1): %o A342826 s = str(k) %o A342826 if digpow(s) == digpow(s[::-1]): alst.append(k) %o A342826 return alst %o A342826 print(aupto(464)) # _Michael S. Branicky_, Mar 23 2021 %Y A342826 Cf. A002113 (subset), A179309, A110751, A227858. %K A342826 nonn,base %O A342826 1,2 %A A342826 _Carole Dubois_, Mar 23 2021