%I #19 May 28 2024 15:56:20
%S 371,336701,333667001,333366670001,333336666700001,333333666667000001,
%T 333333366666670000001,333333336666666700000001,
%U 333333333666666667000000001,333333333366666666670000000001,333333333336666666666700000000001,333333333333666666666667000000000001
%N Curious identities based on the Armstrong number 371 = A005188(12).
%C See a comment in A067275.
%H Colin Barker, <a href="/A281860/b281860.txt">Table of n, a(n) for n = 1..333</a>
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1111,-112110,1111000,-1000000).
%F a(n) = A002277(n) * 10^(2*n) + A067275(n+1) * 10^n + 0(n-1)1, where 0(n-1)1 stands for n-1 0's followed by a 1, for n >= 1.
%F a(n) = A002277(n)^3 + A067275(n+1)^3 + (0(n-1)1)^3.
%F From _Colin Barker_, Feb 09 2017: (Start)
%F G.f.: x*(371 - 75480*x + 1185000*x^2 - 2000000*x^3)/((1 - x)*(1 - 10*x)*(1 - 100*x)*(1 - 1000*x)).
%F a(n) = 1111*a(n-1) - 112110*a(n-2) + 1111000*a(n-3) - 1000000*a(n-4) for n>4.
%F a(n) = (3 + 10^n + 100^n + 1000^n)/3. (End)
%e n=1: 371 = 3^3 + 7^3 + 1^3;
%e n=2: 336701 = 33^3 + 67^3 + (01)^3;
%e n=3: 333667001 = 333^3 + 667^3 + (001)^3.
%t LinearRecurrence[{1111,-112110,1111000,-1000000},{371,336701,333667001,333366670001},20] (* _Harvey P. Dale_, May 28 2024 *)
%o (PARI) Vec(x*(371 - 75480*x + 1185000*x^2 - 2000000*x^3) / ((1 - x)*(1 - 10*x)*(1 - 100*x)*(1 - 1000*x)) + O(x^30)) \\ _Colin Barker_, Feb 09 2017
%Y Cf. A002277, A067275, A281857, A281858, A281859.
%K nonn,easy
%O 1,1
%A _Wolfdieter Lang_, Feb 08 2017