A043066 a(n) = (s(n)+6)/8, where s(n) = n-th base 8 palindrome that starts with 2.
1, 3, 17, 18, 19, 20, 21, 22, 23, 24, 129, 138, 147, 156, 165, 174, 183, 192, 1025, 1033, 1041, 1049, 1057, 1065, 1073, 1081, 1090, 1098, 1106, 1114, 1122, 1130, 1138, 1146, 1155, 1163, 1171, 1179, 1187, 1195, 1203, 1211
Offset: 1
Crossrefs
Cf. A043022.
Programs
-
Mathematica
b8pQ[n_]:=With[{idn=IntegerDigits[n,8]},idn==Reverse[idn]&&idn[[1]]==2]; (#+6)/8&/@ Select[ Range[1000],b8pQ] (* Harvey P. Dale, Sep 20 2023 *)
Formula
a(n) = (A043022(n) + 6)/8.